I am attempting to make a Graph PATCH call to update the "description" property on a Security group in Azure AD. The following works fine if the group is a Microsoft 365 (Unified) group:
PATCH /v1.0/groups/b6a17a50-9dc2-47f5-b3ec-15e3f0ca5276 HTTP/1.1
Host: graph.microsoft.com
Authorization: Bearer eyJ0.......
Content-Type: application/json
Content-Length: 91
{
"description": "Updated description",
"@odata.type": "microsoft.graph.group"
}
but if the group is a security group, I get the following error:
{
"error": {
"code": "Request_BadRequest",
"message": "Property creationOptions should not be set.",
"details": [
{
"code": "PropertyShouldNotBeSet",
"message": "Property creationOptions should not be set.",
"target": "creationOptions"
}
],
"innerError": {
"date": "2022-07-15T19:05:23",
"request-id": "172e17eb-b75a-471f-8de1-afa17b9d6350",
"client-request-id": "172e17eb-b75a-471f-8de1-afa17b9d6350"
}
}
}
Is it possible to update the description of an Azure AD Security group via Graph API? And if so, how?