-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
area:authCategory: Authentication (Azure AD / etc)Category: Authentication (Azure AD / etc)area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:questionQuestion... if answered, will be tagged as such.Question... if answered, will be tagged as such.
Description
I tried to do the following CSOM tenant admin operation with application permissions:
var tenant = new Tenant(tenantContext);
var siteProperties = tenant.GetSitePropertiesByUrl(siteUrl, true);
tenantContext.Load(siteProperties);
tenantContext.ExecuteQuery();My application principal has all application permissions, including Sites.FullControl.All, but I get a 401 unauthorized response. The same call succeeds with delegated permissions.
The documentation should make clear that this is not a supported scenario (or, better, this scenario should be supported).
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 93e8fb5e-6609-837a-d446-22e21a15c7bd
- Version Independent ID: d884aca7-6a6e-3046-a892-2e8cf9b47665
- Content: Accessing SharePoint using an application context, also known as app-only
- Content Source: docs/solution-guidance/security-apponly.md
- Product: sharepoint
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
sandeepvootoori
Metadata
Metadata
Assignees
Labels
area:authCategory: Authentication (Azure AD / etc)Category: Authentication (Azure AD / etc)area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:questionQuestion... if answered, will be tagged as such.Question... if answered, will be tagged as such.