question

dariavasina-4843 avatar image
0 Votes"
dariavasina-4843 asked Sheena-MSFT answered

MS Graph API, transitiveMemberOf returns Bad Request when no membership

Hi!

When user is not a member of any group - transitiveMemberOf returns Bad Request for me, whereas memberOf returns empty list.

Is it expected or transitiveMemberOf should also return empty list?

microsoft-graph-profile
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Sheena-MSFT avatar image
0 Votes"
Sheena-MSFT answered

Hi @dariavasina-4843,

I am not able to repro your issue at my end. I tried transitiveMemberOf and memberOf for a user who is not a part of any group but for both the endpoint i'm getting empty list.

Please find the below screenshots

177790-memberof1.png

177827-memberof.png






Hence it is not the expected behaviour transitiveMemberOf should also return empty list for users not member of any group, directory roles etc.

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".




memberof1.png (60.4 KiB)
memberof.png (58.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.