Forum Discussion

Tomaz9x's avatar
Tomaz9x
Copper Contributor
Feb 16, 2022

Dynamic group membership - Teams owners

Hello,

Does anyone knows if it is possible to build group membership based on teams owners? I would like to have Dynamic Security group whos members are owners of our Team teams.

Regards

Tomaz

1 Reply

  • Jan Bakker's avatar
    Jan Bakker
    Iron Contributor
    Should be possible, with a little automation.

    Please check this concept here I did the same with MFA enabled users.
    https://janbakker.tech/use-power-automate-for-your-custom-dynamic-groups/

    You could use this query to grab the team owner, and put them in a group:

    https://graph.microsoft.com/v1.0/groups/28e8803b-e13c-4e1c-b7b4-a8dfd049c895/owners