Building Applications and Solutions with Microsoft 365 Core Services (legacy) — Question 45
You have an application that uses the Microsoft Graph API.
You need to configure the application to retrieve the groups to which the current signed-in user belongs. The results must contain the extended priorities of the groups.
Which URI should you use?
Answer options
- A. https://graph.microsoft.com/v1.0/me/getMemberObjects
- B. https://graph.microsoft.com/v1.0/me/getMemberGroups
- C. https://graph.microsoft.com/v1.0/me/memberOf
- D. https://graph.microsoft.com/v1.0/me/checkMemberGroups
Correct answer: B
Explanation
The correct answer is B because the URI 'https://graph.microsoft.com/v1.0/me/getMemberGroups' is specifically designed to retrieve the groups that the user is a member of while including extended properties. Option A is incorrect as it retrieves object IDs of groups, but not their priorities. Option C provides the groups the user is a member of, but does not include extended attributes, and option D checks group membership but does not return the groups themselves.