Skip to content

Are tenant admin operation supported with application permissions ? #6519

@lucmoco

Description

@lucmoco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authCategory: Authentication (Azure AD / etc)area:csom/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/devtype:archive-old-issueIssues which are closed as tool old for active worktype:questionQuestion... if answered, will be tagged as such.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions