Skip to main content
You must have at least Application Developer permissions in your Azure account to register applications in Microsoft Entra ID. An administrator must also grant consent for the required API permissions.

Register an app in Microsoft Entra ID

An app registration in Microsoft Entra ID holds the OAuth credentials for SharePoint. API access depends on the permissions granted to the app, not on the scopes in the OAuth token.

1

Create the app registration

Sign in to the Microsoft Entra admin center, then open Entra ID > App registrations. If you do not see it, search for App registrations in the search bar at the top of the page. If you have access to multiple tenants, use the Settings (gear) icon in the top-right corner to select the correct directory.

  • Click New registration.
  • Name: A name that identifies this integration
  • Supported account types: Accounts in this organizational directory only for single-tenant access, or the option that matches your organization
  • Redirect URI (optional): Web as the platform, then the Callback URL from your Connector Profile
  • Click Register.
Register an application form showing the Name field, Supported account types dropdown, and Register button
2

Copy the Client ID

The Overview page of the new app shows the Essentials section.

  • Copy the Application (client) ID to Client ID in your Connector Profile.
App Overview page showing the Essentials section with the Application (client) ID field
3

Add the Microsoft Graph permissions

Enables actions: Cancel Upload Session, Complete Upload Session, Convert Drive Item Content, Create Upload Session, Create Upload Session For Existing File, Download Drive Item Content, Download Drive Item Thumbnail Content, Download Drive Item Version Content, Download Shared Drive Item Content, Get Drive, Get Drive Item, Get Item, Get List, Get List Columns, Get List Operations, Get Root Site, Get Site, Get Site By Path, Get Site Columns, Get Site Content Types, Get Upload Session, List Drive Item Children, List Drive Item Versions, List Drive Root Children, List Items, List Site Drives, List Site Lists, List Sites, List Subsites, Replace Drive Item Content, Search Sites, Upload Bytes To Upload Session, Upload Drive Item Content

From the left menu under Manage, select API permissions.

  • Click + Add a permission.
  • Select Microsoft Graph from the Microsoft APIs tab.
  • Select Delegated permissions.
  • Search for Sites or Files and expand the matching group.
  • Check the box for each scope listed.
  • Click Add permissions.
Sites permissions list showing Sites.Read.All and Sites.ReadWrite.All checkboxes
4

Grant admin consent

On the API permissions page of your app, grant consent for the permissions you added.

  • Click Grant admin consent for [tenant name].
  • Select Yes to consent on behalf of all users in your tenant.
  • Check that the Status column shows consent granted for each permission.
API permissions page showing the Grant admin consent for StackOne button and configured permissions table
5

Create the client secret

From the left menu under Manage, select Certificates & secrets.

  • Under the Client secrets tab, click + New client secret.
  • Description: A short description of what the secret is for
  • Expires: How long the secret stays valid
  • Click Add.
Add a client secret dialog with Description field and Expires dropdown
6

Copy the Client Secret

The Client secrets table shows the Value of the new secret. Microsoft shows it only once.

  • Copy the Value to Client Secret in your Connector Profile.

Find your tenant ID (single-tenant apps only)

Your Microsoft Entra tenant ID identifies the directory your SharePoint sites belong to. Leave Tenant ID blank on a multi-tenant app registration — sign-in then goes through the shared organizations endpoint and Microsoft resolves the tenant from the account signing in.

1

Copy the Tenant ID

Sign in to the Microsoft Entra admin center, then open Entra ID > Overview. The Tenant ID is in the Basic information section.

  • Copy the Tenant ID across.
Entra ID Overview page showing the Basic information section with the Tenant ID field and copy icon

Create the StackOne Connector Profile

1

Create a Connector Profile

Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.
2

Link an Account

Once the Connector Profile is created, continue to link an account.