Graph API with filter ref properties does not seem to work as documented

aapo 106 Reputation points
2021-07-06T10:45:38.37+00:00

I am calling Graph API
https://graph.microsoft.com/v1.0/groups/{id}/members?$count=true&$filter=startswith(displayName, 'a')

with header ConsistencyLevel: eventual

and getting a result of
request_unsupportedQuery
the specified filter to the reference property query is currently not supported

yet it is documented here as to work
https://learn.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http#example-5-use-filter-to-get-group-membership-with-a-display-name-that-starts-with-the-letter-a-including-a-count-of-returned-objects

What is the issue?

Best,
Aapo

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,647 questions
{count} votes

Accepted answer
  1. aapo 106 Reputation points
    2021-07-06T13:12:35.113+00:00

    I was missing $count=true.
    Sorry.

    -Aapo

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. aapo 106 Reputation points
    2021-07-06T10:46:12.993+00:00

    If I remove the filter, I am getting expected results.