> ## Documentation Index
> Fetch the complete documentation index at: https://nango-marcin-nan-6306-mcp-tool-connections-get.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SharePoint Online (Client Credentials V2) - How do I link my account?

# Overview

To authenticate with SharePoint Online (Client Credentials V2), you need:

1. **Tenant ID** - The unique identifier for your organization that uses Microsoft services.
2. **Client ID** - The unique identifier that Azure assigns to your application when it's registered.
3. **Client Secret** - A unique string that enables the client application to access SharePoint Online.

This guide will walk you through generating and finding these credentials within Azure.

### Prerequisites:

* You must have an Azure account with an active SharePoint Online subscription.

### Instructions:

#### Step 1: Finding your Tenant ID

1. Your Tenant ID can be found in the **Tenant ID** field on the [Overview page](https://aad.portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview) within your Azure account.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/JF1RGOrLETIJxZol/integrations/all/microsoft-business-central/tenant_id.png?fit=max&auto=format&n=JF1RGOrLETIJxZol&q=85&s=58a2f2502035eb121257dc0511d2bf63" width="3024" height="984" data-path="integrations/all/microsoft-business-central/tenant_id.png" />

#### Step 2: Generating your Client ID

1. Navigate to the [Azure portal home page](https://portal.azure.com/#home) and sign in using the credentials of an administrator.
2. Select **App registrations**.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/JF1RGOrLETIJxZol/integrations/all/microsoft-business-central/app_registration.png?fit=max&auto=format&n=JF1RGOrLETIJxZol&q=85&s=e30d57310fd08d6b55bcd27f67978306" width="3024" height="1372" data-path="integrations/all/microsoft-business-central/app_registration.png" />

3. Select **New registration**.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/JF1RGOrLETIJxZol/integrations/all/microsoft-business-central/new_registration.png?fit=max&auto=format&n=JF1RGOrLETIJxZol&q=85&s=84f5d96d3ef0cfc3f2b2243dffd171c6" width="3024" height="1372" data-path="integrations/all/microsoft-business-central/new_registration.png" />

4. In the **Register an application** section, enter a meaningful application name to display to users. Select who can use this application based on your environment and click **Register**.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/RYYRXKkHX2PUb6s5/integrations/all/sharepoint-online-oauth2-cc/register_new_app.png?fit=max&auto=format&n=RYYRXKkHX2PUb6s5&q=85&s=d6a1dfbc292d0c600b9a8cff32a2fc79" width="2894" height="1244" data-path="integrations/all/sharepoint-online-oauth2-cc/register_new_app.png" />

5. Once you have registered your application, your **Client ID** will be displayed in the **Application (client) ID** field within the **Essentials**.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/RYYRXKkHX2PUb6s5/integrations/all/sharepoint-online-oauth2-cc/client_id.png?fit=max&auto=format&n=RYYRXKkHX2PUb6s5&q=85&s=f91ed8c31966e3b3abe559d8624b9c94" width="2894" height="1244" data-path="integrations/all/sharepoint-online-oauth2-cc/client_id.png" />

#### Step 3: Generating your Client Secret

1. After registering a new app in the [step](#step-2-generating-your-client-id) above, you can now generate a client secret for that specific application. Navigate to **Certificates & secrets** under **Manage**, and click **New client secret**.
2. A pop-up modal will appear, prompting you to enter your secret's **Description** and **Expires** values. Fill these then click on **Add**.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/RYYRXKkHX2PUb6s5/integrations/all/sharepoint-online-oauth2-cc/client_secret.png?fit=max&auto=format&n=RYYRXKkHX2PUb6s5&q=85&s=0112e79c333f71f9a6380d3dba7bff0e" width="3024" height="1390" data-path="integrations/all/sharepoint-online-oauth2-cc/client_secret.png" />

3. Once completed, your **Client Secret** will be generated. This value can be found in the **Value** field within the **Client Secrets** table.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/RYYRXKkHX2PUb6s5/integrations/all/sharepoint-online-oauth2-cc/gen_client_secret.png?fit=max&auto=format&n=RYYRXKkHX2PUb6s5&q=85&s=ab7becde904c0079074bbfa27c18cdbb" width="3024" height="1390" data-path="integrations/all/sharepoint-online-oauth2-cc/gen_client_secret.png" />

4. After generating the **Client Secret**, you must grant the registered application the necessary permissions for **SharePoint Online**. To do this, navigate to **API permissions**, select **Add a permission**, and choose **Microsoft Graph**.
5. Select **Application permissions**, choose the required permissions, and then click **Add permissions**.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/RYYRXKkHX2PUb6s5/integrations/all/sharepoint-online-oauth2-cc/permissions.png?fit=max&auto=format&n=RYYRXKkHX2PUb6s5&q=85&s=34b5ac4cb8e0a7ed15438604e84ae72b" width="3024" height="1390" data-path="integrations/all/sharepoint-online-oauth2-cc/permissions.png" />

#### Step 4: Enter credentials in the Connect UI

Once you have your credentials:

1. Open the form where you need to authenticate with SharePoint Online (Client Credentials V2).
2. Enter the **Tenant ID**, **Client ID** and **Client Secret** in their designated fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango-marcin-nan-6306-mcp-tool-connections-get/RYYRXKkHX2PUb6s5/integrations/all/sharepoint-online-oauth2-cc/form.png?fit=max&auto=format&n=RYYRXKkHX2PUb6s5&q=85&s=26344106f1ee65e51882b536f26c03f8" style={{maxWidth: "450px" }} width="1000" height="1380" data-path="integrations/all/sharepoint-online-oauth2-cc/form.png" />

You are now connected to SharePoint Online (Client Credentials V2).
