Microsoft
MS-600 · Question #67
You need to display the profile picture of the current signed-in user. Which REST query should you use to retrieve the picture?
The correct answer is A. GET /me/photo/$value. The following OData 4.0 capabilities are URL segments, not query parameters. $value retrieves or updates the binary value of an item. Example: GET /me/photo/$value https://docs.microsoft.com/en-us/graph/query-parameters
Build apps with Microsoft Graph
Question
You need to display the profile picture of the current signed-in user. Which REST query should you use to retrieve the picture?
Options
- AGET /me/photo/$value
- BGET /me/photos/0
- CGET /users/{userPrincipalName}/photo
- DGET /me/photo
How the community answered
(44 responses)- A70% (31)
- B16% (7)
- C5% (2)
- D9% (4)
Explanation
The following OData 4.0 capabilities are URL segments, not query parameters. $value retrieves or updates the binary value of an item. Example: GET /me/photo/$value https://docs.microsoft.com/en-us/graph/query-parameters
Topics
#Microsoft Graph#user photo#/me/photo#REST query
Community Discussion
No community discussion yet for this question.