Sites.Selected Require Sites.Read.All

Sharee Huddleston 25 Reputation points
2024-08-12T21:00:15.66+00:00

I have an app registration. It has been granted admin access to graph permission Sites.Selected. A Global admin granted registered app explicit write access to specific sharepoint site using graph explorer. It seems we also need admin consent for Sites.Read.All. If we use both Sites.Read.All and Sites.Selected, does Sites.Selected filter access to only read the site.selected? Why is Sites.Read.All also needed? Thank you.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,887 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,949 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 45,991 Reputation points Microsoft Vendor
    2024-08-13T09:57:32.54+00:00

    You need both Sites.Selected and Sites.Read.All to read data for a site collection.

    Sites.Selected is an endpoint which administrator can grant Read, Write, or Read and Write permissions to an application for a site collection.

    So, first develop aplication with Sites.Selected permission, then use Sites.Selected endpoint to grant Read permissions to an application for a site collection.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Michael Taylor 53,971 Reputation points
    2024-08-12T21:22:09.2966667+00:00

    Perhaps this will provide some insight for you.

    You should also read the subsequent blog article from earlier this year about it.


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.