How to integrate Microsoft Sharepoint account?
Overview
To authenticate, you will need to provide the following information:
- Client ID
- Client Secret
- Tenant ID
Step 1: Login to Microsoft Azure Portal
- Go to Microsoft Azure
- Sign in with the Microsoft account that has access to your Sharepoint tenant (typically an admin account).
Step 2: Register Your Application
- Once logged in, select "App registrations" from Azure Services.
- Click on "+ New registration".

- Fill the registration details:
- Name: Give your app a name (e.g., Demo App)
- Supported account types: Choose
- Accounts in any organizational directory (Multitenant)
- Redirect URI: Since there is no need for users to sign in to this application directly, you can choose ‘Single-page application (SPA)’ for the redirect URI and leave it blank.

- Click Register.
Step 3: Get the Client ID and Tenant ID
-
After the app is registered, you will land on the app overview page.
-
Copy the following:
- Application (client) ID → This is your Client ID
- Directory (tenant) ID → This is your Tenant ID
Step 4: Generate Client Secret
- Go to Certificates & secrets in the left sidebar

- Under Client secrets, click + New client secret
- Add: - Description: (e.g., App Secret) - Expires: Select an expiration duration (e.g., 6 months or 1 year)
- Click Add
- Copy the Value immediately — this is your Client Secret
Required Application and Delegated Permissions
Permissions | Type |
---|---|
Directory.ReadWrite.All | Application |
Files.Read.All | Application |
Files.ReadWrite.All | Application |
Group.Read.All | Application |
Sites.Read.All | Application |
Sites.ReadWrite.All | Application |
User.Read.All | Application |
Directory.Read.All | Delegated |
Files.Read | Delegated |
Files.Read.All | Delegated |
Files.ReadWrite | Delegated |
Files.ReadWrite.All | Delegated |
offline_access | Delegated |
Sites.Read.All | Delegated |
Sites.ReadWrite.All | Delegated |
User.Read | Delegated |
User.Read.All | Delegated |
How to Add these Permissions
- Go to API Permissions from left navigation
- Click + Add a permission

- Select:
- Microsoft Graph
- Choose:
- Application permissions Or
- Delegated permissions
- Add the required permissions listed above and click Add permissions
- Click Grant admin consent