SOLVED

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

Brass Contributor

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 ($expand=manager). But I have over 100 users and so I set the top parameter to 999 ($top=999).

However, I still only get 100 users exactly.

Screenshot_324.png


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

Screenshot_325.png

Please tell me how to fix?

1 Reply
best response confirmed by Pavel2235 (Brass Contributor)
Solution
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 best response

Accepted Solutions
best response confirmed by Pavel2235 (Brass Contributor)
Solution
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.

View solution in original post