Sharepoint App Only permissions copied to subsites

David Croome/CAN 1 Reputation point
2020-08-28T16:18:49.423+00:00

I have full control of a site in my companies Sharepoint online tenant. I do NOT have Site collection or Tenant admin. rights.

I am able to create a app only service principal with full rights to the site I control, with web scope.

I need to extend those rights to all subsites of my site.

Is there code that will allow me to do that without manually adding the service principal to each sub-site?

Dave

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,608 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,941 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Trevor Seward 11,701 Reputation points
    2020-08-28T17:53:51.003+00:00
    0 comments No comments

  2. Jerryzy 10,571 Reputation points
    2020-08-31T03:45:39.013+00:00

    Hi @David Croome/CAN ,

    As @Trevor Seward 's suggestion, please use http://sharepoint/content/sitecollection permission level, this will include all the sub site under the sitecollection which SharePoint add-in hosted.

    21317-snipaste-2020-08-31-11-23-50.png


    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.