question

sethsteele-4398 avatar image
0 Votes"
sethsteele-4398 asked DanKershaw-5643 commented

GraphAPI: "Not a collection" error when using $filter or $top on /users endpoint

We're experiencing an issue when we try to $filter or do a $top on the /users endpoint.

"The query specified in the URI is not valid. The requested resource is not a collection. Query options $filter, $orderby, $count, $skip, and $top can be applied only on collections."

/users should be a collection, no? This was working for us previously and stopped in the last couple weeks.

How to duplicate:

https://developer.microsoft.com/en-us/graph/graph-explorer
Login
https://graph.microsoft.com/v1.0/users?$top=10
Run Query

microsoft-graph-users
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

michev avatar image
0 Votes"
michev answered DanKershaw-5643 commented

Works fine here. Are you getting the same behavior outside of Graph explorer, or is it specific to the tool?

· 2
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.

First noticed it in our application's API calls reported by one of our users and was able to duplicate for my account in Graph Explorer.

0 Votes 0 ·

@sethsteele-4398 Can you provide the full error response including the request-id and timestamp please so we can investigate further?

0 Votes 0 ·