Forum Discussion

Swejal's avatar
Swejal
Copper Contributor
Mar 19, 2025

How to Configure Site Access with sites.Selected Permission

Hi. I am running a data pipeline that retrieves documents from SharePoint sites without requiring a signed-in user. Since authentication is handled within the data pipeline itself,  how can the SharePoint admin specify which sites to grant access to after selecting the sites.selected permission?

1 Reply

  • EPNAdam's avatar
    EPNAdam
    Iron Contributor

    If this is a single site then you can use https://developer.microsoft.com/en-us/graph/graph-explorer  and do something like https://devblogs.microsoft.com/microsoft365dev/sharepoint-now-supports-delegated-sites-selected-authentication/. 

    Please note: This requires that you have an service principal registered which requires certain permissions in your Azure tenant. 

    This depends on your solution, but if possible then use Managed Identity in first place. The above describes a simple approach for a single site and if your solution covers many sites then you should consider a more "production-ready" approach.

Resources