Forum Discussion
Pavel2235
Jul 27, 2023Brass Contributor
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?
- That's a known issue/expected behavior: https://developer.microsoft.com/en-us/graph/known-issues/?search=13635
$expand on directory objects:
Returns a maximum of 100 objects.
1 Reply
- That's a known issue/expected behavior: https://developer.microsoft.com/en-us/graph/known-issues/?search=13635
$expand on directory objects:
Returns a maximum of 100 objects.