> ## Documentation Index
> Fetch the complete documentation index at: https://stackone-hub-docs-confluence-api-token-update.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sharepoint

> Follow these steps to connect Sharepoint via the StackOne Hub successfully.

<Warning>
  Ensure that your Sharepoint account has Admin or Owner privileges.
</Warning>

If you've been directed to StackOne to integrate with Sharepoint, the following steps will help you understand the process and any necessary actions to configure a successful integration.

## OAuth + File Picker

### Log in to Sharepoint

<Steps>
  <Step title="Get your SharePoint Base URL">
    Your SharePoint base URL follows this format:

    ```
    https://{your-domain}.sharepoint.com
    ```

    You can find this URL by:

    1. Opening your Microsoft SharePoint site
    2. Copying the base URL from your browser's address bar
  </Step>

  <Step title="Log in to Microsoft Azure">
    Log in to your [Microsoft Azure](https://portal.azure.com/) portal.

    <img src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/C1VeUVSQ_nltDcS8/images/sharepoint/azure-login.png?fit=max&auto=format&n=C1VeUVSQ_nltDcS8&q=85&s=6511177acbff2ee281ea36e20ad9cf1a" alt="Azure Login Pn" width="494" height="578" data-path="images/sharepoint/azure-login.png" />
  </Step>

  <Step title="Obtain your Tenant ID">
    Search Microsoft Entra ID and navigate to the **Overview** page.

    **Copy** <Icon icon="clipboard" color="#333333" /> the Tenant ID and store safely to be used in a later step:

    * Directory (tenant) ID

          <img src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/C1VeUVSQ_nltDcS8/images/sharepoint/tenant-id.png?fit=max&auto=format&n=C1VeUVSQ_nltDcS8&q=85&s=3853b7770ef2c1c6e64b1647f9724af0" alt="Ms Entra App Client Tenant Ids Sharepoint Pn" width="2152" height="906" data-path="images/sharepoint/tenant-id.png" />
  </Step>

  <Step title="Connect to Sharepoint">
    Enter the credentials in the fields below and click the Connect button to start the login process. You will be redirected to Sharepoint.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Connect to GoogleDrive" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/C1VeUVSQ_nltDcS8/images/sharepoint/image-2.png?fit=max&auto=format&n=C1VeUVSQ_nltDcS8&q=85&s=f3c842845a5327eb8db7267fa8b5aa52" width="980" height="1500" data-path="images/sharepoint/image-2.png" />
    </Frame>
  </Step>

  <Step title="Grant OAuth Application Consent">
    A window will appear and may prompt you to log in to your Sharepoint account.

    After logging in, you will be displayed the OAuth consent screen.

    Click the **Allow** button to grant the application access to your Sharepoint account.
  </Step>
</Steps>

## OAuth

<Steps>
  <Step title="Connect to Sharepoint">
    Enter the credentials in the fields below and click the Connect button to start the login process. You will be redirected to log in to Microsoft.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Connect to Sharepoint" src="https://mintcdn.com/stackone-hub-docs-confluence-api-token-update/C1VeUVSQ_nltDcS8/images/sharepoint/image-1.png?fit=max&auto=format&n=C1VeUVSQ_nltDcS8&q=85&s=7e7d74c890644b069df63d29e4b8ec36" width="970" height="1472" data-path="images/sharepoint/image-1.png" />
    </Frame>
  </Step>

  <Step title="Authorize the Application">
    After logging in to Microsoft, a consent screen will be displayed with the permissions required for the connecting application.

    Click the **Accept** button to grant access.

    <Frame>
      <img className="rounded-md" style={{ margin:"0 auto",border:"1px solid #efefef" }} alt="Authorize Sharepoint application" src="https://mintlify.s3.us-west-1.amazonaws.com/stackone-hub-docs-confluence-api-token-update/connection-guides/documents/images/sharepoint/sharepoint-stackone-consent-2.png" title="" />
    </Frame>
  </Step>
</Steps>

<br />

Congratulations, you're all set! If you face any issues with the steps mentioned above,
please contact us by emailing [integrations@stackone.com](mailto:integrations@stackone.com). We're always here to assist you!

## Available data

This integration has the following [DOCUMENTS Resources](https://docs.stackone.com/reference/getting-started-with-your-api) available from the provider:

* Drives
* Files
* Folders
