I'm trying to set up a dynamic group for all the Managers across four companies, so that it automatically updates when someone joins, leaves, or moves. I'm specifically looking for a rule that checks if a user has any direct reports. If they have more than zero direct reports, they should be added to the group. Is there an easy way to do this, or is such a function not available?
2 Answers
For Entra dynamic groups, there doesn't appear to be a direct report attribute usable in this context. You might need to consider using a script to update a regular group instead. If you're using a distribution group, check in Exchange – I believe it has the direct reports attribute available for dynamic groups.
Unfortunately, it seems like there isn't a direct attribute for checking if a user has direct reports, which makes it challenging to filter that as you want. If you’re in an Active Directory synced environment, a PowerShell script running nightly could help you maintain the group effectively.

I’ll take a look at Exchange since I just need the group for email purposes.