Client ID and Client Secret for Microsoft OneDrive Libraries
Note: This article is for Informer version 2025.1.x and earlier. As of 2025.2.0, OneDrive Libraries do not require Users to manually create and enter a Client ID and Client Secret to connect.
To get a Client ID and Client Secret for Microsoft OneDrive, register an application through the Microsoft Identity platform. This process lets you authenticate and interact with Microsoft services, including OneDrive, using OAuth 2.0.
Navigate to the Azure Portal
Go to the Azure Portal and sign in with the Microsoft account you want to use to access the OneDrive API.
Create a new app registration
Navigate to Azure Active Directory (you can search for it in the search bar). In the left-hand menu, under Manage, click App registrations. Click New registration at the top of the page.
Fill in application details
- Name: Enter a name for your application (for example, "My OneDrive App").
- Supported account types: Select who can use this app. For example, select Accounts in any organizational directory and personal Microsoft accounts if you want both work/school and personal accounts.
- Redirect URI: In the Select a Platform dropdown, click Web. The Redirect URI is
https://api.informer.cloud/integration/callback.
Complete the registration
After filling in the details, click Register. The application is created, and you are redirected to its overview page.
Obtain the Client ID
On the Overview page of your app registration, you will see an Application (client) ID. This is the Client ID you use when creating your Library.
Create a Client Secret
On the left-hand sidebar, click Certificates & secrets under the Manage section. In the Client secrets section, click New client secret. Provide a description (for example, "My secret key") and select an expiration period (1 year, 2 years, or never). After clicking Add, the secret value is displayed. Copy and store it somewhere safe, as you will not be able to view it again after navigating away from the page.
Grant API permissions for OneDrive
To access OneDrive data, set the appropriate API permissions. In the left sidebar, click API permissions, then Add a permission. Choose Microsoft Graph > Delegated permissions. For OneDrive access, you typically need:
Files.ReadFiles.ReadWriteFiles.Read.AllFiles.ReadWrite.All
You may need to grant admin consent for the permissions if required. After selecting the permissions, click Add permissions. These credentials allow your application to authenticate with Microsoft's identity platform and access OneDrive data. Set the application to multitenancy versus single-tenant access as appropriate.