Forum Discussion
Nigel Witherdin
Mar 16, 2020Iron Contributor
How to query to find all users who are managed by a specified individual
Hi,
Wondering if it is possible to query (using PnP JS) to get user profiles for all users who are managed by a specified individual?
Im guessing it can done using clientPeoplePickerSearchUser (https://pnp.github.io/pnpjs/sp/profiles/#search-a-user-or-group), but I am not sure how to structure a query based on the Manager profile
Thanks!
Achieved this with MS Graph API call to get a users "directReports"
2 Replies
Sort By
- RobElliottSilver Contributor
Nigel Witherdin there's also the Office 365 Users Get Direct reports (V2) action in Power Automate which will get the list quickly and easily.
Rob
Los Gallardos
Microsoft Power Automate Community Super User - Nigel WitherdinIron Contributor
Achieved this with MS Graph API call to get a users "directReports"