question

PublicALLDOCS-9851 avatar image
0 Votes"
PublicALLDOCS-9851 asked StephanvanRooij-6273 commented

Create Dynamic group incorporte members from another group AAD.

Folks,
Question: is there way to have dynamic group to have all members for another group. For example, if i have AAD group call 'Contoso' and has 50 members, i want to create Dynamic group call 'Dynamic contoso' and get all members from Contoso group.

thx

azure-ad-user-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered StephanvanRooij-6273 commented

Hi @PublicALLDOCS-9851 · Thank you for reaching out.

As of now, there is no query available to add members from a static group to another dynamic group.

The best you can do at this point is, get a list of group members by using Get-AzureADGroupMember cmdlet and then create a script with foreach loop to add the output users to another static group using Add-AzureADGroupMember cmdlet.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PublicALLDOCS-9851 · Just checking if above response helped or if you have any further questions.

0 Votes 0 ·

The answer, this doesn't but you can do this, usually isn't going to be accepted.....

If the user wants to have some way that all users from group X are also added to a dynamic group, then a better answer is. This is currently not supported, create a feature request here (with the link)

0 Votes 0 ·