nerdexam
Microsoft

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…

Build apps with Microsoft Graph

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

How the community answered

(42 responses)
  • A
    10% (4)
  • B
    2% (1)
  • C
    83% (35)
  • D
    5% (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

#Microsoft Graph API#OData $select#manager endpoint#query parameters

Community Discussion

No community discussion yet for this question.

Full MS-600 Practice