Granting an app access to a single library

UNC 0 Reputation points
2026-10-05T02:03:03.3566667+00:00

Can m365 Basic let an app be granted access to a single library

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Liora 3,690 Reputation points Independent Advisor
    2026-10-05T02:24:10.0766667+00:00

    Dear @UNC,

    I hope you're having a good day.

    If by "a single library" you mean a specific SharePoint document library, then the answer is not directly through the standard app permission model.

    Microsoft supports granting applications access to specific SharePoint sites by using the Sites.Selected permission model. With this approach, an application can be restricted to one or more specific SharePoint sites instead of receiving access to all sites in the tenant.

    However, Sites.Selected operates at the site level, not at the individual document library level.

    • Supported: App > Access to Site A only
    • Not directly supported: App > Access only to Library X within Site A

    Assuming SharePoint Online is available in your tenant and the necessary administrative permissions are available, Microsoft 365 Business Basic would generally not be the limiting factor in this scenario.

    For reference: Granting access via Entra ID App-Only | Microsoft Learn

    If your requirement is to isolate access to a single library, a common approach is to place that library in a dedicated SharePoint site and then grant the application access only to that site using Sites.Selected.

    I hope this information helps point you in the right direction.

    Warm regards,  


    If the answer is helpful, please select "Yes, accept answer". If you have any questions or new updates, please feel free to comment below. 

    Was this answer helpful?

    1 person found this answer helpful.

  2. Marko Lucic 0 Reputation points
    2026-11-10T08:00:48.1633333+00:00

    Yes. An app can now be limited to a single library, not just a whole site. Besides Sites.Selected, Microsoft Graph has Lists.SelectedOperations.Selected, which works the same way at list level, and a document library is a list. Business Basic doesn't change anything here: it only needs SharePoint Online and an app registration in Entra ID.

    The steps, from Microsoft's overview of Selected permissions:

    1. In Entra ID, add the Microsoft Graph permission Lists.SelectedOperations.Selected to the app (application or delegated) and grant admin consent. On its own this gives the app no access to anything.
    2. Grant the app a role on the one library with Create permission on a list:
    POST https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/permissions
    Content-Type: application/json
    
    {
      "roles": ["write"],
      "grantedToV2": {
        "application": { "id": "<app client ID>", "displayName": "<app name>" }
      }
    }
    

    The roles are read, write, owner and fullcontrol. Whatever makes this call needs Sites.FullControl.All, or Sites.Selected with owner or full control on that site.

    1. The app then uses a token with that scope and can reach only that library.

    One thing to plan for: granting an app access to a library breaks permission inheritance on that library.

    So you no longer need a separate site just to isolate one library.

    Was this answer helpful?

    0 comments No comments

Your answer

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