woman draw a light bulb in white board

Microsoft graph API to access sharepoint

Recently I’ve had to setup a few different app registration using Azure AD to access sharepoint sites.

Once you get the process down its pretty easy.

Create the Azure AD app registration and give it Sites.Selected API permissions.

Then use PnP.Powershell to assign the permisisons.

Grant-PnPAzureADAppSitePermission -AppId $appId -DisplayName $appName -Permissions Read -Site $siteUrl

Thats it.

If you want a more details step by step post. Check Leon’s post here.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.