exam questions

Exam MS-600 All Questions

View all questions & answers for the MS-600 exam

Exam MS-600 topic 2 question 13 discussion

Actual exam question from Microsoft's MS-600
Question #: 13
Topic #: 2
[All MS-600 Questions]

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?

  • 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
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Get member groups returns all the groups that the specified user, group, or directory object is a member of. This function is transitive.
Reference:
https://docs.microsoft.com/en-us/graph/api/directoryobject-getmembergroups

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mountainhyena
Highly Voted 2 years, 5 months ago
I went to Graph API explorer, logged in, and tried all 4. "C" was the only one that returned a valid result. So it's got to be C. Reference: https://developer.microsoft.com/en-us/graph/graph-explorer
upvoted 13 times
youb
1 year, 8 months ago
because you need to go for POST and put a body { "securityEnabledOnly": true } https://docs.microsoft.com/en-us/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0&tabs=http
upvoted 2 times
martinlingstuyl
1 year, 3 months ago
yeah, but that one does not show extended properties. It only shows groupIds in string format. So C its the correct answer
upvoted 2 times
...
...
...
VaMa6
Highly Voted 1 year, 9 months ago
I have tried all of those in the Graph Explorer and looking at the Graph API documentation I found the following: - getMemberObjects and getMemberGroups are POST requests, and they will return the ID of the groups so they are not valid answers for this question. - checkMemberGroups applies to a group, not a user so not a valid answer - memberOf is a GET request, and will return a collection of DirectoryObjects, so that will give us the extended properties of the group. This is the correct answer.
upvoted 6 times
...
Contactfornitish
Most Recent 5 months ago
Selected Answer: C
https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName If you need SecurityEnabledOnly ones then changing the body can do that as well. Don't see any reason to over-complicate simple things by putting Post requests
upvoted 2 times
...
youb
1 year, 8 months ago
The answer is correct, see in the graphExplorer, don't forget to put the request as POST and put the body with { "securityEnabledOnly": true }
upvoted 5 times
...
nitz14
1 year, 9 months ago
The question is to "retrieve the groups to which the current signed-in user belongs" and does not talk about any direct user membership. Option B = Retrieves all user groups Option C = Get groups, directory roles, and administrative units that the user is a direct member of. ANSWER Should be Option -B
upvoted 3 times
...
RajatSahani
2 years, 1 month ago
https://graph.microsoft.com/v1.0/me/memberOf Option C is right answer
upvoted 3 times
...
PreetiLearner
2 years, 3 months ago
Answer is C
upvoted 1 times
...
wonderznight
2 years, 3 months ago
https://graph.microsoft.com/v1.0/me/memberOf
upvoted 3 times
...
PeterPan2
2 years, 7 months ago
The answer in my opinion should be c as memberOf returns all the properties of the groups the user is a member of. Answer b will just return the identifiers of the groups that the user belongs to
upvoted 3 times
ETU69
2 years, 7 months ago
I do agree with PeterPan2's answer B, but not because of his motivation. Here is an example of the response. Note: The response object shown here may be truncated for "brevity". All of the properties will be returned from an actual call. See: https://docs.microsoft.com/en-us/graph/api/user-getmembergroups?view=graph-rest-1.0&tabs=csharp#response-1 Answer C: "https://graph.microsoft.com/v1.0/me/getMemberGroups" gives an error in Graph Explorer: "Specified HTTP method is not allowed for the request target."
upvoted 2 times
ETU69
2 years, 7 months ago
Furthermore the question is about "groups" not about all "directory objects".
upvoted 1 times
...
ETU69
2 years, 7 months ago
Hmm, should you read "belong" as "direct member"? Either way, it is a question that is not very clear!
upvoted 1 times
...
TRUESON
2 years, 6 months ago
It also speaks about extended props ... getmembergoups only returns grp names as string
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago