Does it necessarily need to be an AAD group? If so, you're out of luck. But you can do it for Exchange Dynamic DG, check the answers in this thread: https://learn.microsoft.com/en-us/answers/questions/299355/dynamic-membership-rule-for-all-users-with-direct.html
Azure Active Directory Dynamic Groups - get all users referended in a user's profile
I like to built a dynamic Azure Active directory group. As rule for contained users I need all users referenced as managers in some other users profile.
So a user should only be in the group if she or he is manager of any user in the AD. I don't think it's possible so far but I won't to be sure ;-)
2 answers
Sort by: Most helpful
-
-
Mr Sbaa 356 Reputation points
2021-10-15T17:30:58.547+00:00 You can use Jobtitle for that. If this doesn't work for your organization, you can also try to use custom extension properties. However, you need to populate this in Active Directory first and sync it to Azure AD.
For more info about custom extension properties:
https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership