Return Managers

Mark Smith 1 Reputation point
2022-11-18T15:50:40.937+00:00

Is it possible to return the manager on all users? My error is saying that it is not supported and I just want to verify I am doing this correctly.

https://graph.microsoft.com/v1.0/users?$expand=manager($levels=max;$select=displayName)&$count=true

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 60,736 Reputation points Volunteer Moderator
    2022-11-18T15:54:20.983+00:00

    Hi @Mark Smith

    Try:

    https://graph.microsoft.com/v1.0/me?$expand=manager($levels=max;$select=id,displayName)&$select=id,displayName&$count=true

    Cited from:

    Example 2: Get manager chain up to the root level

    https://learn.microsoft.com/en-us/graph/api/user-list-manager?view=graph-rest-1.0&tabs=http#example-2-get-manager-chain-up-to-the-root-level

    If this doesn't work can you please provide what you are seeing and what tools you are using to send this GET request to?

    --------------------------------------------------

    If this is helpful please accept answer.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.