Skip to main content
Registering the application needs at least the Application Developer role in Microsoft Entra ID, and granting admin consent needs a Global Administrator or Privileged Role Administrator.

Register an application in Microsoft Entra ID

An app registration in Microsoft Entra ID holds the OAuth 2.0 credentials and the Microsoft Graph permissions for Microsoft OneDrive.

1

Start the registration

Sign in to the Microsoft Entra admin center, then open Entra ID > App registrations.

  • Click New registration.
The App registrations page with the New registration button highlighted
2

Fill in the registration form

The Redirect URI is where Microsoft returns the authorization response, so it has to match the address StackOne listens on.

  • Name: StackOne Integration
  • Supported account types: Single tenant only if only your organization will use this integration, or a multitenant option if you need to support users from other Microsoft Entra directories
  • Redirect URI: select Web, then enter the Callback URL from your Connector Profile
  • Click Register.
The Register an application form with Name, Supported account types, Redirect URI and the Register button highlighted
3

Copy the Client ID

On the Overview page, copy the value into your Connector Profile.

  • Client ID: the Application (client) ID
The application Overview page with the Application (client) ID value highlighted

Add the Microsoft Graph permissions

Delegated permissions let the application act on behalf of the signed-in user, which is what the authorization code flow uses.

1

Open the permission picker

From the left menu under Manage, select API permissions.

  • Click Add a permission.
  • Select Microsoft Graph.
  • Select Delegated permissions.
The Request API permissions panel with the Microsoft Graph card highlighted
2

Select the permissions

Enables actions: Check In Drive Item, Check Out Drive Item, Copy Drive Item, Create Folder, Create Sharing Link, Create User, Delete Drive Item, Delete Item Permission, Download Drive Item, Download Item Version, Download Unified File, Follow Drive Item, Get Default Drive, Get Drive, Get Drive Item, Get Drive Item By Path, Get Drive Item Thumbnails, Get Drive Root Folder, Get Item Permission, Get Item Version, Get Special Folder, Get Unified Drive, Get Unified File, Get Unified Folder, Get User, List Current User’s Drives, List Drive Item Children, List Drive Root Children, List Followed Items, List Item Permissions, List Item Versions, List Unified Drives, List Unified Files, List Unified Folders, List User’s Drives, List Users, Move Drive Item, Restore Drive Item, Search Drive Items, Send Sharing Invitation, Unfollow Drive Item, Update Drive Item, Update Item Permission, Upload File To Drive, Upload Unified File

Use Select permissions to filter the catalog, then select the checkbox beside each permission.

  • Click Add permissions.
The Select permissions list filtered to Files with the search box and permission checkboxes highlighted
3

Grant admin consent

Consent approves the delegated permissions for everyone in your directory, so each user is not prompted individually.

  • Click Grant admin consent for [your organization].
  • Click Yes on Grant admin consent confirmation.
  • Check that the Status column reads Granted for [your organization] for every permission.
The Configured permissions table with the Grant admin consent button highlighted

Create a client secret

The client secret is the credential the application presents when it exchanges the authorization code for an access token.

1

Add the secret

From the left menu under Manage, select Certificates & secrets, then open the Client secrets tab.

  • Click New client secret.
  • Description: Integration with StackOne
  • Expires: an expiration period
  • Click Add.
The Add a client secret panel with Description, Expires and the Add button highlighted
2

Copy the Client Secret

Copy the Value of the new secret into your Connector Profile.

  • The Value is only displayed when the secret is created and cannot be retrieved later.
  • Copy the Value, not the Secret ID.
The client secrets table with the copy button beside the secret Value highlighted

Find your tenant ID (single-tenant apps only)

The Tenant ID identifies the Microsoft Entra directory that holds your OneDrive accounts. It is also called the Directory ID.

1

Copy the Tenant ID

Sign in to the Microsoft Entra admin center, then open Entra ID > Overview.

  • Under Basic information, copy the Tenant ID into StackOne Hub.
The Entra ID Overview page with the Tenant ID value and its copy button highlighted

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.