Mar 15 2020 07:00 PM
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!
Mar 23 2020 02:36 PM
SolutionAchieved this with MS Graph API call to get a users "directReports"
Mar 24 2020 01:37 AM
@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
Mar 23 2020 02:36 PM
SolutionAchieved this with MS Graph API call to get a users "directReports"