Paging does not work in Microsoft Graph API when requesting transitiveMembers of a user

Alexander Suter 6 Reputation points
2022-09-15T07:47:20.83+00:00

'm reading all transitiveMembers of a specifc user:

https://graph.microsoft.com/v1.0/users/XYZ/transitiveMemberOf/microsoft.graph.group?$top=1

then I get the $nextLink back and when I call the $nextLink it won't work!

NextLink:

https://graph.microsoft.com/v1.0/users/XYZ/transitiveMemberOf/microsoft.graph.group?$top=1&$skiptoken=RFNwdAoAAQAAAAAAAAAAFAAAAB07M0vLFURAsMsUN4-KQOkBAAAAAAAAAAAAAAAAAAAXMS4yLjg0MC4xMTM1NTYuMS40LjIzMzEGAAAAAdTjC2hqzPNDrFEoagMHQUIAAchf4d1PyVVCl-hg90jO4hwBlAAAAAEAAAAA

statusCode: 400

{"error":{"code":"Request_UnsupportedQuery","message":"Invalid search request.","innerError":{"date":"2022-09-14T15:16:13","request-id":"e49d9ded-87ce-4219-80c8-b7f41a7eac2c","client-request-id":"e49d9ded-87ce-4219-80c8-b7f41a7eac2c"}}}

What can I do?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,912 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vicky Kumar (Mindtree Consulting PVT LTD) 1,171 Reputation points Microsoft Employee
    2022-09-19T10:27:33.27+00:00

    I tried to repo from my end, this is working fine.

    242500-image.png

    If you are still facing the issue , kindly follow the steps below

    1. Could you please try by clicking on the "CLick here to follow the link, as shown in the screenshot"
    2. Please try again and check with other users as well
    3. If you are still facing the issue, please check by changing the top = 3 or more, and make sure that the more group exists.

    API - https://graph.microsoft.com/v1.0/users/XYZ/transitiveMemberOf/microsoft.graph.group?$top=5

    If you have any query, please add in comment

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.