Hi,
Graph API subscription creation returning a 403 for group changes. The application is a .net6 application and Graph nuget package is : Microsoft.Graph (4.11.0)
The subscription creation was working fine, but all of a sudden has stopped to work.
The error message we are getting is,
Code: ExtensionError
Message: Operation: Create; Exception: [Status Code: Forbidden; Reason: ]
Request Send :
POST https://graph.microsoft.com/v1.0/subscriptions
Content-Type: application/json
{
"changeType": "created,updated",
"notificationUrl": "notificationurl",
"resource": "groups/{groupid}/members",
"expirationDateTime": "2016-03-20T11:00:00.0000000Z",
"clientState": "SecretClientState"
}
The reason is not specified in the error message so it is very difficult to locate the error.
The app registration has all the relevant permission(application- Group.Read.All and User.Read.All) to create the subscription. And as I said above it was working fine before.
The flow used is client credential flow.
Is there a way to find out the exact reason for error?