That's not doable afaik, you can only use this clause for specific person's direct reports.
Dynamic Membership Rule for All Users with Direct Reports
Looking for rule syntax to capture all users who have direct reports. Tried 'Direct Reports -ne NULL' and 'Direct Reports -like "*"'
New at this. Thanks!
3 additional answers
Sort by: Most helpful
-
Stuart J. Seed 1 Reputation point
2022-07-12T11:31:07.563+00:00 Any progress on this? Having a dynamic group of all managers would be very useful - all I can think of at the moment is to add a custom attribute and populate with 'isManager' based on results from our HRIS software, not very dynamic as we would need to keep importing as and when they change roles.
How about something along the lines of ' if direct reports is not null' - that sort of logic?
-
Toni Tong 1 Reputation point
2022-07-25T00:22:24.203+00:00 same requirement here. I need a dynamic group with all staff who has direct reports to them.
-
Raphael Porto 1 Reputation point
2022-12-29T20:23:57.183+00:00 You can use: DirectReports -ne $null