A repository of code snippets that use Microsoft Graph to perform common tasks such as sending email, managing groups, and other activities from an ASP.NET Core MVC app. This sample uses the Microsoft Graph .NET Client Library to work with data, and the Microsoft Identity Web Library for authentication on the Microsoft identity platform v2.0 endpoint.
I'm trying to update the description for a group that I have created through the API, but I'm getting an error message in return.
My code;
public static async Task<bool> UpdateGroup(GraphServiceClient graphClient, Group group)
{
try
{
await graphClient.Groups[group.Id].Request().UpdateAsync(new Group
{
Description = group.Description
});
return true;
}
catch (Exception e)
{
throw;
}
}
The error;
Code: BadRequest
Message: Operation not supported.
I've checked the required permissions on Azure for "Microsoft Graph" and the option "Read and write all groups" is selected under both Application and Delegated permissions.
I can successfully create and delete groups so I'm assuming the permissions aren't the issue.
The code I'm using is from this repo so I'm not sure what to check to fix this.
I'm trying to update the description for a group that I have created through the API, but I'm getting an error message in return.
My code;
The error;
I've checked the required permissions on Azure for "Microsoft Graph" and the option "Read and write all groups" is selected under both Application and Delegated permissions.
I can successfully create and delete groups so I'm assuming the permissions aren't the issue. The code I'm using is from this repo so I'm not sure what to check to fix this.