Hi I am trying to add extension property to azure ad user using Microsoft.Graph package.
var schema = new SchemaExtension()
{
Id = "Location",
TargetTypes = new List<string> { "User" },
Description = "DescribesLocation",
Properties = new List<ExtensionSchemaProperty>() { new ExtensionSchemaProperty { Name = "LocationCode", Type = "String" } }
};
var result = graphClient.SchemaExtensions.Request().AddAsync(schema).Result;
I have created a daemon application in azure ad registered applications and given below permissions to the application
- Directory.Read.All
- Directory.ReadWrite.All
- User.Invite.All
- User.Read
- User.Read.All
- User.ReadWrite.All
- Group.Read.All
- Group.ReadWrite.All
I am getting error message as Code: Authorization_RequestDenied Message: Insufficient privileges to complete the operation. What other permissions are required for this operation and which permissions are not required?