Forum Discussion

Pavel2235's avatar
Pavel2235
Brass Contributor
Jul 27, 2023
Solved

The top parameter does not work together with the expand parameter in the get graph query.

Hi! I noticed that the top parameter does not work for me together with the expand parameter in the get graph query.


https://graph.microsoft.com/v1.0/users?$select=displayName,accountEnabled&$expand=manager&$top=999

 

I want to get a list of my users with their managers. I get managers through expand (https://graph.microsoft.com/v1.0/users?$select=displayName,accountEnabled&$expand=manager&$top=999). But I have over 100 users and so I set the top parameter to 999 (https://graph.microsoft.com/v1.0/users?$select=displayName,accountEnabled&$expand=manager&$top=999).

However, I still only get 100 users exactly.


If remove expand from query, then I will get all my 285 users.



Please tell me how to fix?

Resources