C#C
C#3y ago
AAA

❔ 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();

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
Screenshot_2023-06-13_133740.png
Screenshot_2023-06-13_134748.png
Was this page helpful?