How to use Microsoft Graph API to enable accessing a specific SharePoint site

Michiyuki Abe 20 Reputation points
2023-12-27T09:18:39.9033333+00:00

We are using Microsoft Entra ID to authorize applications to register and use the Graph API to access Sharepoint API.

Is there a way to give an application authorization to operate only one site, rather than all Sharepoint sites?

Thank you.

Microsoft 365 and Office SharePoint For business Windows
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2023-12-27T17:45:42.3933333+00:00

    Yes, you can restrict access to specific site(s) only by leveraging the method detailed here: https://devblogs.microsoft.com/microsoft365dev/controlling-app-access-on-specific-sharepoint-site-collections/

    If you need more detailed steps, I've put some here: https://www.michev.info/blog/post/3256/limiting-access-to-sharepoint-online-resources-via-the-graph-api


0 additional answers

Sort by: Most helpful

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.