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

seth steele 6 Reputation points
2021-06-23T20:24:59.423+00:00

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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Vasil Michev 117.1K Reputation points MVP
    2021-06-24T06:52:09.93+00:00

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


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.