Reputation: 13
I'm trying to pull all the users' info from Microsoft Graph, when I do GET https://graph.microsoft.com/beta/users/
, it doesn't pull manager
, directReports
, etc. For that, I'm making additional API calls to
/beta/users/[email protected]/directReports
and
/users/[email protected]/authentication/methods
Is there a way to use wildcard characters in the above, so that it fetches the directReports
information for all the users? I don't want to make call for each user and method, as our Org is very big.
Upvotes: 1
Views: 382
Reputation: 3585
You can use the relationships to get these details.
For getting all users directReports
you can use the below graph call.
https://graph.microsoft.com/v1.0/users?$expand=directReports
See this document.
Upvotes: 1