Share via

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

aapo 111 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 Security | Microsoft Graph

Answer accepted by question author

aapo 111 Reputation points
2021-07-06T13:12:35.113+00:00

I was missing $count=true.
Sorry.

-Aapo

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

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

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

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.