Skip to content

GroupItemRequestBuilderGetQueryParameters missing Filter property #2963

@JasonTheProgrammer

Description

@JasonTheProgrammer

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.

https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/v5.56.1/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs#L445

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions