App Registration for External Access to SharePoint
Step-by-step documentation for configuring an app registration to grant external access to a SharePoint site.
Introduction
This guide teaches you how to configure an app registration to grant an external party access to a specific SharePoint site within a Microsoft 365 environment. It requires steps in Microsoft Entra ID (formerly Azure AD), setting up permissions, and configuring access at the SharePoint level.
1. Create App Registration (Microsoft Entra ID)
- Go to https://entra.microsoft.com (opens in a new tab) or https://portal.azure.com (opens in a new tab).
- Navigate to 'App registrations' > 'New registration'.
- Fill in the following information:
- Name: Give the app a recognizable name, e.g.,
ExtApp_SharePointAccess
. - Supported account types: Choose 'Accounts in another organization' for external access.
- Redirect URI: Only required for interactive authentication (such as web apps).
- Name: Give the app a recognizable name, e.g.,
- Click ‘Register’.
2. API Permissions
- Open the registered app.
- Go to API permissions > Add a permission.
- Choose SharePoint > Delegated permissions.
- Add:
AllSites.FullControl
- Click Grant admin consent for your organization.
3. Generate Client Secret
- In the app, go to Certificates & Secrets.
- Click New client secret, give it a name and expiration.
- Copy the Value immediately – this is the only time you’ll see it.
4. Assign SharePoint Site Permissions
- Go to the SharePoint site you want to expose.
- Open Site Settings > Site Permissions > Advanced Permissions.
- Click Grant Permissions, and add the App ID as a user:
- Format:
i:0i.t|ms.sp.ext|<CLIENT_ID>@<TENANT_ID>
- Format:
- Choose the appropriate permission level (e.g., Read, Contribute, Full Control).
Summary
You have now registered an external app and granted it delegated access to a SharePoint site. Be sure to follow up with any external parties to share the necessary credentials securely.