MS-600 · Question #12
You are developing a human resources application that will show users where they are in their company's organization chart. You are adding a new feature that will display the name of a user's…
The correct answer is A. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/ manager?$select=displayName. Get user's manager. Returns the user or organizational contact assigned as the user's manager. GET /users/{id | userPrincipalName}/manager Only the name of the user's manager should be displayed so we use ?select=displayname To specify a different set of properties to return…
Question
You are developing a human resources application that will show users where they are in their company's organization chart. You are adding a new feature that will display the name of a user's manager inside the application. You need to create a REST query to retrieve the information. The solution must minimize the amount of data retrieved. Which query should you use?
Options
- AGET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/ manager?$select=displayName
- BGET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/ people?$filter=jobTitle eq
- CGET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/ contacts?$filter=jobTitle eq
- DGET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/manager
How the community answered
(42 responses)- A83% (35)
- B10% (4)
- C2% (1)
- D5% (2)
Explanation
Get user's manager. Returns the user or organizational contact assigned as the user's manager. GET /users/{id | userPrincipalName}/manager Only the name of the user's manager should be displayed so we use ?select=displayname To specify a different set of properties to return than the default set provided by the Graph, use the $select query option. The $select option allows for choosing a subset or superset of the default https://developer.microsoft.com/en-us/graph/docs/overview/query_parameters
Topics
Community Discussion
No community discussion yet for this question.