C
C#13mo ago
aaarianme

❔ Sharepoint CSOM API Scopes on Azure AD

I have the follwoing permissions on my API. In winforms im requesting these scopes: "User.Read", "Files.ReadWrite.All", "Sites.ReadWrite.All", "Calendars.Read", "Sites.Manage.All" my client app looks like this :
myPublicClientApplication = PublicClientApplicationBuilder.Create("clientId").WithAuthority("https://login.microsoftonline.com/{tenantid}/oauth2/token").WithDefaultRedirectUri()
.WithBroker(new BrokerOptions(BrokerOptions.OperatingSystems.Windows))
.Build();
myPublicClientApplication = PublicClientApplicationBuilder.Create("clientId").WithAuthority("https://login.microsoftonline.com/{tenantid}/oauth2/token").WithDefaultRedirectUri()
.WithBroker(new BrokerOptions(BrokerOptions.OperatingSystems.Windows))
.Build();
this silently logs the user in and it works perfectly fine but when I add "AllSites.Manage" scope to the requesting scopes, i get an error saying it doesn't exsit on the resource
1 Reply
Accord
Accord13mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.