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. App-only access cannot reach the signed-in user’s own drive, so the actions that resolve it are unavailable with this authentication type.

Register an application in Microsoft Entra ID

An app registration in Microsoft Entra ID holds the credentials and the Microsoft Graph application permissions for Microsoft OneDrive. Application permissions apply without a signed-in user, so no redirect URI is needed.

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

Leave Redirect URI empty — the client credentials flow never sends the user to a sign-in screen.

  • Name: StackOne Integration
  • Supported account types: Single tenant only — the application permissions apply to one directory
  • Click Register.
The Register an application form with Name, Supported account types and the Register button highlighted

Add the Microsoft Graph application permissions

Application permissions are granted to the application itself rather than to a user, so an administrator consents to them once and they apply across the directory.

1

Open the permission picker

From the left menu under Manage, select API permissions.

  • Click Add a permission.
  • Select Microsoft Graph.
  • Select Application permissions.
The Request API permissions panel with the Application permissions 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, 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 User, List Drive Item Children, List Drive Root Children, List Item Permissions, List Item Versions, List User’s Drives, List Users, Move Drive Item, Restore Drive Item, Search Drive Items, Send Sharing Invitation, Update Drive Item, Update Item Permission, Upload File To Drive

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 Files.Read.All and Files.ReadWrite.All selected
3

Grant admin consent

Application permissions take effect only once an administrator consents to them, which is why each one shows Not granted until then.

  • 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 showing the application permissions with the Grant admin consent button highlighted

Copy the credentials

The application identifies itself with three values from the registration — two from the Overview page and a secret you create.

1

Copy the Client ID and Tenant ID

On the Overview page, copy both values into StackOne Hub.

  • Client ID: the Application (client) ID
  • Tenant ID: the Directory (tenant) ID
The application Overview page with the Application (client) ID and Directory (tenant) ID values highlighted
2

Create a client 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 Certificates and secrets page with the Client secrets tab and the New client secret button highlighted
3

Copy the Client Secret

Copy the Value of the new secret into StackOne Hub.

  • 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
1

Connect

  • Click Connect.
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.