mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
Add permission info about sharepoint (#3369)
This commit is contained in:
committed by
GitHub
parent
5e9061e20a
commit
cdc073d64f
@@ -22,9 +22,9 @@ You can use these credentials to authenticate the following nodes:
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Create a [Microsoft Azure](https://azure.microsoft.com/){:target=_blank .external-link} account.
|
||||
- Create a [Microsoft Azure](https://azure.microsoft.com/) account.
|
||||
- Create at least one user account with access to the appropriate service.
|
||||
- If the user account is managed by a corporate Microsoft Entra account, the administrator account has enabled the option “User can consent to apps accessing company data on their behalf” for this user (see the [Microsoft Entra documentation](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent)).
|
||||
- If a corporate Microsoft Entra account manages the user account, the administrator account has enabled the option “User can consent to apps accessing company data on their behalf” for this user (see the [Microsoft Entra documentation](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent)).
|
||||
|
||||
## Supported authentication methods
|
||||
|
||||
@@ -34,13 +34,13 @@ You can use these credentials to authenticate the following nodes:
|
||||
|
||||
Refer to the linked Microsoft API documentation below for more information about each service's API:
|
||||
|
||||
- Dynamics CRM: [Web API](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/overview){:target=_blank .external-link}
|
||||
- Excel: [Graph API](https://learn.microsoft.com/en-us/graph/api/resources/excel){:target=_blank .external-link}
|
||||
- Graph Security: [Graph API](https://learn.microsoft.com/en-us/graph/api/overview){:target=_blank .external-link}
|
||||
- OneDrive: [Graph API](https://learn.microsoft.com/en-us/onedrive/developer/rest-api/){:target=_blank .external-link}
|
||||
- Outlook: [Graph API](https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview){:target=_blank .external-link} and [Outlook API](https://learn.microsoft.com/en-us/outlook/rest/reference){:target=_blank .external-link}
|
||||
- Teams: [Graph API](https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview){:target=_blank .external-link}
|
||||
- To Do: [Graph API](https://learn.microsoft.com/en-us/graph/todo-concept-overview){:target=_blank .external-link}
|
||||
- Dynamics CRM: [Web API](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/overview)
|
||||
- Excel: [Graph API](https://learn.microsoft.com/en-us/graph/api/resources/excel)
|
||||
- Graph Security: [Graph API](https://learn.microsoft.com/en-us/graph/api/overview)
|
||||
- OneDrive: [Graph API](https://learn.microsoft.com/en-us/onedrive/developer/rest-api/)
|
||||
- Outlook: [Graph API](https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview) and [Outlook API](https://learn.microsoft.com/en-us/outlook/rest/reference)
|
||||
- Teams: [Graph API](https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview)
|
||||
- To Do: [Graph API](https://learn.microsoft.com/en-us/graph/todo-concept-overview)
|
||||
|
||||
## Using OAuth2
|
||||
|
||||
@@ -53,13 +53,13 @@ For self-hosted users, there are two main steps to configure OAuth2 from scratch
|
||||
1. [Register an application](#register-an-application) with the Microsoft Identity Platform.
|
||||
2. [Generate a client secret](#generate-a-client-secret) for that application.
|
||||
|
||||
Follow the detailed instructions for each step below. For more detail on the Microsoft OAuth2 web flow, refer to [Microsoft authentication and authorization basics](https://learn.microsoft.com/en-us/graph/auth/auth-concepts){:target=_blank .external-link}.
|
||||
Follow the detailed instructions for each step below. For more detail on the Microsoft OAuth2 web flow, refer to [Microsoft authentication and authorization basics](https://learn.microsoft.com/en-us/graph/auth/auth-concepts).
|
||||
|
||||
### Register an application
|
||||
|
||||
Register an application with the Microsoft Identity Platform:
|
||||
|
||||
1. Open the [Microsoft Application Registration Portal](https://aka.ms/appregistrations){:target=_blank .external-link}.
|
||||
1. Open the [Microsoft Application Registration Portal](https://aka.ms/appregistrations).
|
||||
2. Select **Register an application**.
|
||||
3. Enter a **Name** for your app.
|
||||
4. In **Supported account types**, select **Accounts in any organizational directory (Any Azure AD directory - Multi-tenant) and personal Microsoft accounts (for example, Skype, Xbox)**.
|
||||
@@ -70,7 +70,7 @@ Register an application with the Microsoft Identity Platform:
|
||||
6. Select **Register** to finish creating your application.
|
||||
7. Copy the **Application (client) ID** and paste it into n8n as the **Client ID**.
|
||||
|
||||
Refer to [Register an application with the Microsoft Identity Platform](https://learn.microsoft.com/en-us/graph/auth-register-app-v2){:target=_blank .external-link} for more information.
|
||||
Refer to [Register an application with the Microsoft Identity Platform](https://learn.microsoft.com/en-us/graph/auth-register-app-v2) for more information.
|
||||
|
||||
### Generate a client secret
|
||||
|
||||
@@ -86,7 +86,7 @@ With your application created, generate a client secret for it:
|
||||
1. Select **Connect my account** in n8n to finish setting up the connection.
|
||||
1. Log in to your Microsoft account and allow the app to access your info.
|
||||
|
||||
Refer to Microsoft's [Add credentials](https://learn.microsoft.com/en-us/graph/auth-register-app-v2#add-credentials){:target=_blank .external-link} for more information on adding a client secret.
|
||||
Refer to Microsoft's [Add credentials](https://learn.microsoft.com/en-us/graph/auth-register-app-v2#add-credentials) for more information on adding a client secret.
|
||||
|
||||
### Service-specific settings
|
||||
|
||||
@@ -99,13 +99,13 @@ Dynamics OAuth2 requires information about your Dynamics domain and region. Foll
|
||||
1. Enter your Dynamics **Domain**.
|
||||
2. Select the Dynamics data center **Region** you're within.
|
||||
|
||||
Refer to the [Microsoft Datacenter regions documentation](https://learn.microsoft.com/en-us/power-platform/admin/new-datacenter-regions){:target=_blank .external-link} for more information on the region options and corresponding URLs.
|
||||
Refer to the [Microsoft Datacenter regions documentation](https://learn.microsoft.com/en-us/power-platform/admin/new-datacenter-regions) for more information on the region options and corresponding URLs.
|
||||
|
||||
#### Microsoft (general)
|
||||
|
||||
The general Microsoft OAuth2 also requires you to provide a space-separated list of **Scope**s for this credential.
|
||||
|
||||
Refer to [Scopes and permissions in the Microsoft identity platform](https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc){:target=_blank .external-link} for a list of possible scopes.
|
||||
Refer to [Scopes and permissions in the Microsoft identity platform](https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc) for a list of possible scopes.
|
||||
|
||||
#### Outlook
|
||||
|
||||
@@ -120,6 +120,18 @@ SharePoint OAuth2 requires information about your SharePoint **Subdomain**.
|
||||
|
||||
To complete the credential, enter the **Subdomain** part of your SharePoint URL. For example, if your SharePoint URL is `https://tenant123.sharepoint.com`, the subdomain is `tenant123`.
|
||||
|
||||
SharePoint requires the following permissions:
|
||||
|
||||
Application permissions:
|
||||
|
||||
* `Sites.Read.All`
|
||||
* `Sites.ReadWrite.All`
|
||||
|
||||
Delegated permissions:
|
||||
|
||||
* `SearchConfiguration.Read.All`
|
||||
* `SearchConfiguration.ReadWrite.All`
|
||||
|
||||
## Common issues
|
||||
|
||||
Here are the known common errors and issues with Microsoft OAuth2 credentials.
|
||||
|
||||
@@ -59,6 +59,7 @@ CPython
|
||||
CRM
|
||||
Cron
|
||||
[Cc]rypto
|
||||
[Dd]atacenters?
|
||||
Datadog
|
||||
Datastore
|
||||
[Dd]atetimes?
|
||||
|
||||
Reference in New Issue
Block a user