-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueryParameters Ignored in GraphServiceClient Requests #2683
Comments
Thanks for raising this @ProteorCRE Just to help us understand if this is an issue with the SDK or the API, any chance you've tried making a similar request on the Graph Explorer? http://aka.ms/ge |
Here is the equivalent Graph API request URI : https://graph.microsoft.com/v1.0/groups?$top=999&$select=id,displayName&$expand=members
It returns the expected response.
|
The sample code has the filter section. Do you get the expected response if you add it to the raw request?
|
Yes |
From the snippet shared, I can confirm that the members are included in the response. Any chance its the same for you?
With regards to the Top parameter, the result comes back as 100 in both the SDK and Graph explorer. Any chance you can confirm the same from your end? This suggests that's there;s possibly an upper limit for Top in some scenario (from my understanding, doing an expand on a large data set can be expensive for the API). We would probably need to follow up by asking this to the API owners at https://aka.ms/askGraph |
I get the members now so I guess it won't be explained. |
Describe the bug
The following code is used to retrieve group data from Microsoft Graph with specific QueryParameters:
Issues Observed:
Top Parameter Ignored: Despite setting requestConfiguration.QueryParameters.Top = 999, only the default 100 results are returned. This indicates that the Top parameter is not being applied correctly, and the response is limited to the default page size.
Expand Parameter Not Applied: The Expand parameter is set to include the members property of each group. However, the response does not contain the expanded members data, suggesting that the Expand query option is being ignored or not processed as expected.
Expected behavior
The response should return up to 999 results per page.
Each group object should include its members as specified by the Expand parameter.
How to reproduce
SDK Version
5.58.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: