Hi guys,
I am trying to create an open extension for Office365 message.
I use this as example
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/tests/Microsoft.Graph.Test/Requests/Functional/SchemaExtensionTests.cs
But when I try to add extension schema
SchemaExtension schemaExtension = ServiceClient.SchemaExtensions.Request().AddAsync(extensionDefinition).Result;
I get exception
Code: Authorization_RequestDenied Message: Insufficient privileges to complete the operation. Inner error
according to documentation https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/schemaextension_post_schemaextensions
I need delegated permission Directory.AccessAsUser.All
My app already has this permission, but it doesn't help me.
Do you have any ideas?