MS-600 · Question #189
You have a Microsoft 365 tenant that contains a user named [email protected]. You need to retrieve the name of the manager of the user. The solution must minimize the amount of data returned. Which…
The correct answer is C. https://graph.microsoft.com/v1.0/users/[email protected]/manager?$select=displayName. Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. Get the manager: GET /me/manager - GET /users/{id | userPrincipalName}/manager Optional query parameters - This method supports the…
Question
You have a Microsoft 365 tenant that contains a user named [email protected]. You need to retrieve the name of the manager of the user. The solution must minimize the amount of data returned. Which Microsoft Graph URI should you use?
Options
- Ahttps://graph.microsoft.com/v1.0/users/[email protected]/manager
- Bhttps://graph.microsoft.com/v1.0/users/[email protected]/manager?$search=displayName
- Chttps://graph.microsoft.com/v1.0/users/[email protected]/manager?$select=displayName
- Dhttps://graph.microsoft.com/v1.0/users/[email protected]/?$select=manager
How the community answered
(42 responses)- A10% (4)
- B2% (1)
- C83% (35)
- D5% (2)
Explanation
Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. Get the manager: GET /me/manager - GET /users/{id | userPrincipalName}/manager Optional query parameters - This method supports the $select and $expand OData query parameters to help customize the Example 1: Get manager - The following example shows a request to get the manager. GET https://graph.microsoft.com/v1.0/users/{id|userPrincipalName}/manager The following is an example of the response. Note: The response object shown here might be shortened for readability. "id": "7d54cb02-aaa3-4016-9f9c-a4b49422dd9b", "displayName": "Sara Davis", "jobTitle": "Finance VP", "mail": "[email protected]", "userPrincipalName": "[email protected]" https://docs.microsoft.com/en-us/graph/api/user-list-manager?view=graph-rest-1.0&tabs=http
Topics
Community Discussion
No community discussion yet for this question.