Skip to content
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

Microsoft.Graph.Models.ODataErrors.ODataError: Parameter securityEnabledOnly must be valid Boolean value on Azure portal #2827

Open
LearnVinod opened this issue Feb 11, 2025 · 0 comments

Comments

@LearnVinod
Copy link

Code:
var requestBody = new Microsoft.Graph.Groups.Item.GetMemberGroups.GetMemberGroupsPostRequestBody();
requestBody.SecurityEnabledOnly = false;
var parentGroups = await groupIds.ThrottleAction(id =>
graphClient.Groups[id.ToString()]
.GetMemberGroups.PostAsGetMemberGroupsPostResponseAsync(requestBody), this.graphApiMaxConcurrency);

Above code works fine in local visual studio. But when deployed on Azure app service.
It gives error:
Microsoft.Graph.Models.ODataErrors.ODataError: Parameter securityEnabledOnly must be valid Boolean value.
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Groups.Item.GetMemberGroups.GetMemberGroupsRequestBuilder.PostAsGetMemberGroupsPostResponseAsync(GetMemberGroupsPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken)

Note: Dotnet version on local and Azure server is set to 8.0

Any suggestion will be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant