Skip to main content
Select Actions to adjust the guide
Some actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.
Action
Scope(s)
Loading actions…
Dynamic Guide URL
Scopes Selected
Separator
Access to the Azure Portal with permissions to register applications is required.

Register an Application in Azure

To use OAuth 2.0 authentication, you need to register an application in the Azure Portal.

1

Sign in and navigate to App Registrations

Sign in to the Azure Portal and search for App registrations in the top search bar, or navigate to Microsoft Entra ID > App registrations.

2

Create a new registration

Click + New registration and provide the following details:

  • Enter a name for your application (e.g., StackOne Microsoft OneDrive)
  • Under Supported account types, select Single tenant if only your organization will use this integration, or Multitenant if you need to support users from multiple Azure AD tenants
  • Leave redirect URI blank for now
  • Click Register
3

Copy the Client ID

On the Overview page, copy the Application (client) ID and store it securely for use later.

Configure Redirect URI

Add the redirect URI to allow OAuth authentication flow.

1

Navigate to Authentication Settings

From your app’s Overview page, go to Authentication (Preview) under the Manage section. (In some cases, this may appear as Authentication depending on the UI version.)

2

Configure redirect URI

Under Redirect URI configuration, click Add Redirect URI, select Web, enter the StackOne OAuth callback URL, and click Configure.

  • Redirect URI: https://api.stackone.com/connect/oauth2/microsoftonedrive/callback
  • Note: If you are using the older UI, under Platform configurations click Add a platform, select Web, enter the URI above, and click Configure.

Configure API Permissions

Grant your application the necessary permissions to access Microsoft OneDrive data.

1

Add Microsoft Graph 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

Under Manage, select API permissions > Add a permission > Microsoft Graph > Delegated permissions. Add the scopes required for your use case, then click Add permissions to save.

2

Grant admin consent

Click Grant admin consent for [Your Organization] to authorize these permissions for use across your tenant.

Generate Client Secret

Create a client secret that will be used to authenticate your application with Microsoft OneDrive.

1

Navigate to Certificates & Secrets

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

2

Create a New Client Secret

Under the Client secrets tab, click New client secret.

  • Add a Description (e.g., StackOne Integration Secret).
  • Select an expiration period.
  • Click Add.
3

Copy the Client Secret Value

Immediately copy the Value of the newly created client secret and store it securely for use later. This value will only be shown once and cannot be retrieved again.

Creating the StackOne Connector Profile

To create the Connector Profile in StackOne for Microsoft OneDrive:
1

Navigate to Connector Profiles

Login to StackOne and navigate to Connector Profiles
2

Create New Connector Profile

  • Click + Connector Profile
  • Search for and select Microsoft OneDrive
  • Select Type as OAuth 2.0
  • Fill out the fields using details retrieved from your provider:
    • Client ID
    • Client Secret
    • Scopes (Optional)
  • (Optional) Select Actions to be enabled for this Connector Profile
  • Click Create profile
Congratulations! The new Connector Profile will now show up in your project ready to be used. You can now continue to Link Accounts for Microsoft OneDrive.