I'm trying to set up a dynamic group for all managers across four of our companies. The goal is to have it automatically update whenever someone moves, leaves, or joins, without having to do manual updates. I'm specifically looking for the rule syntax that would check if a user has direct reports and add them to the group if they do. Is there something I'm overlooking, or does such a feature not exist?
4 Answers
It seems there’s no direct attribute in the user profile to filter based on direct reports when you're creating a dynamic group. If you're in an Active Directory synced setup, you could consider using a nightly PowerShell script to manage updates, but that's more of a workaround than a straightforward solution.
I can see where you're coming from! Managers usually have their own managers, going all the way up the chain to the CEO. Are you looking to include all levels of management in this group?
For Entra dynamic groups, I don't think there's an attribute specifically for direct reports. You might need to use a script to update a regular group, or possibly set a custom attribute if you want it dynamic. However, for distribution groups in Exchange, there’s an attribute for direct reports that could be helpful. You might want to check that out for email purposes!

Thanks for the tip! I’ll definitely look into the Exchange option since I just need it for email purposes.