This guide shows you how to register your own app with Microsoft (via Microsoft Entra ID) to obtain your OAuth credentials (client ID & secret). These are required to let your users grant your app access to the Microsoft People API.Documentation Index
Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Create a Microsoft account and Azure account
If you don’t already have them, sign up for a Microsoft account and an Azure account.
Register an application in Microsoft Entra ID
- Sign in to the Microsoft Entra admin center as at least an Application Developer.
- If you have access to multiple tenants, use the Settings icon in the top menu to switch to the tenant in which you want to register the application.
- From the search bar at the top of the Azure portal, search for App registrations and select it. Then choose New registration. Or from your left navigation tab, navigate to Applications > App registrations then choose New registration.
- Enter a meaningful name for your application, for example “Nango Integration”.
- Under Supported account types you need to decide who can install your integration:
- Accounts in any organizational directory - Any user account in a professional Microsoft organization (Business, School, etc.)
- Accounts in any organizational directory and personal Microsoft accounts - The accounts from the first option, plus personal Microsoft accounts (pick this unless you want to restrict your integration to business accounts)
- Leave the Redirect URI section blank for now; we’ll configure it in a later step.
- Click Register to complete the app registration.
Note your application (client) ID
After registration, you’ll be taken to the application’s Overview page. Record the Application (client) ID, which uniquely identifies your application and is used in your application’s code as part of validating security tokens.
Add a redirect URI
- In the left sidebar, select Authentication.
- Under Platform configurations, select Add a platform.
- Select Web as the platform type.
- Enter
https://api.nango.dev/oauth/callbackas the Redirect URI. - Under Advanced settings, keep Allow public client flows set to the default No for web applications.
- Click Configure to save your changes.
Add API permissions
- In the left sidebar, select API permissions.
- Click Add a permission.
- Select Microsoft Graph.
- Select Delegated permissions.
- Search for and select
People.Read. If you need to retrieve people relevant to other users in your organization, also addPeople.Read.All(requires admin consent). - Click Add permissions.
- If your application requires admin consent (e.g. for
People.Read.All), click Grant admin consent for [tenant].
Create a client secret
- In the left sidebar, select Certificates & secrets.
- Under Client secrets, click New client secret.
- Enter a description for the secret and select an expiration period. Note that the maximum is 24 months — you’ll need to rotate it before it expires.
- Click Add.
- Important: Copy the secret value immediately and store it securely. You won’t be able to see it again after you leave this page.
Next
Follow the Quickstart.
Common scopes
| Scope | Description |
|---|---|
People.Read | Read the signed-in user’s relevant people list (requires end-user consent) |
People.Read.All | Read people relevant to any user in the organization (requires admin consent) |
offline_access | Access to refresh tokens for offline access |