-
Notifications
You must be signed in to change notification settings - Fork 263
Description
Is your feature request related to a problem? Please describe the problem.
I would like to use the SDK to make a query to the Groups endpoint, including a Filter, but the property isn't present. E.g. code like this:
await _graphClient.Groups[GROUP_ID]
.GetAsync(conf =>
{
conf.Headers.Add("ConsistencyLevel", "eventual");
conf.QueryParameters.Count = true;
conf.QueryParameters.Filter = $"startsWith(givenName, '{QUERY_TEXT}') or startsWith(surName, '{QUERY_TEXT}')";
});
But both the Filter and Count properties do not exist on the GroupItemRequestBuilder.GroupItemRequestBuilderGetQueryParameters class.
According to documentation here https://learn.microsoft.com/en-us/graph/api/group-list-members the $filter property is allowed, and there's even an example using it.
Using Graph Explorer with the sample tenant here:
https://developer.microsoft.com/en-us/graph/graph-explorer
This REST query works as anticipated:
https://graph.microsoft.com/v1.0/groups/52987f91-5a61-4c25-8a22-c55ce1b446d6/members/microsoft.graph.user?$count=true&$filter=startsWith(givenName, 'al') or startsWith(surName, 'al')
So the $filter and $count OData query parameters are definitely valid. Just the Graph SDK doesn't provide for them.
Describe the solution you'd like.
Add Filter and Count properties to GroupItemRequestBuilder.GroupItemRequestBuilderGetQueryParameters class.
Additional context?
No response