Entra ID (formerly Azure AD)
Entra ID Connection
The Entra ID (formerly Azure AD) connector allows OnLink to connect to your Microsoft Entra tenant and manage users and application provisioning. After the connection is configured, OnLink can create users, deactivate users, and provision apps for users. This guide walks through registering an application in Microsoft Entra ID, assigning the required Microsoft Graph application permissions, creating a client secret, and adding the values to OnLink.
At a glance
Connection field | Value | Where to get it |
|---|---|---|
Tenant ID | Directory (tenant) ID (GUID) | App registration → Overview (step 1) |
Client ID | Application (client) ID (GUID) | App registration → Overview (step 1) |
Client Secret | Client secret Value (not the Secret ID) | App registration → Certificates & secrets (step 3) |
Authentication | OAUTH 2.0 CLIENT CREDENTIALS with Microsoft Graph application permissions | Handled by OnLink (permissions in step 2) |
Before you begin
Access to the Microsoft Entra admin center (or the Azure portal).
Permission to create or manage app registrations in Microsoft Entra ID. Microsoft lists Cloud Application Administrator as the least privileged role for registering an app and adding a client secret.
An Entra administrator who can grant admin consent for Microsoft Graph application permissions. Application permissions always require admin consent.
Access to OnLink to create the connection.
Tip: If you have access to more than one tenant, use the Settings icon in the top menu of the Entra admin center to switch to the correct tenant before you start.
Step 1: Register an application in Entra ID
Sign in to the Microsoft Entra admin center.
Browse to Entra ID → App registrations. (In the Azure portal: open Microsoft Entra ID → App registrations.)
Select New registration.
Enter a clear application name, for example
OnLink Connection.Keep the default supported account type (single tenant) unless your organization requires a different option.
Select Register.
On the application Overview page, copy the Directory (tenant) ID and Application (client) ID. You will use these values in OnLink.
Step 2: Configure Microsoft Graph permissions
Configure Microsoft Graph application permissions so OnLink can perform the required user and application provisioning actions.
In the app registration, select API permissions.
Select Add a permission.
Select Microsoft Graph.
Choose Application permissions, not delegated permissions.
Under Select permissions, search for and select each permission in the table below.
Select Add permissions.
Select Grant admin consent for <your tenant> and confirm. If you do not have administrator access, ask an Entra administrator to complete this step.
Permission (Application) | Purpose |
|---|---|
| Read users |
| Read groups |
| Read organization information |
| Read applications |
| Read directory data |
| Required for Microsoft Intune app management |
| Required for Microsoft Intune managed device operations |
Read vs. write: Read permission is sufficient to import data to Assets. Write permission is required for User and Group if you need to make user and group changes through actions in Workflow.
Admin consent: Changes to configured permissions don't take effect until an administrator grants consent again. After consent, each permission shows a Granted status.
Step 3: Create a client secret
OnLink uses the client secret to authenticate with Microsoft Graph.
In the app registration, select Certificates & secrets → Client secrets.
Select New client secret.
Enter a description that identifies the secret, for example
OnLink connection.Select an expiration period that follows your organization's security policy. Microsoft allows up to 24 months and recommends less than 12.
Select Add.
Immediately copy the client secret Value (not the Secret ID) and store it securely.
Copy the value now. The secret value is only shown once. If you lose it, you must create a new client secret and update OnLink.
Security: Treat the client secret like a password. Do not commit it to source control or include it in screenshots, tickets, or chat. Note the expiry date and rotate the secret in OnLink before it expires.
Step 4: Add the connection in OnLink
In OnLink, create a new connection and select Entra ID.
Enter the Tenant ID (Directory (tenant) ID) from step 1.
Enter the Client ID (Application (client) ID) from step 1.
Paste the Client Secret value from step 3.
Save the connection.
Step 5: Verify the connection
Run a test sync (or Get Data) using the new Entra ID connection.
Confirm that users (and groups, if used) are returned and that the fields you need are populated.
If anything fails, check the OnLink Job logs and the troubleshooting section below.
Done: The connection is saved, admin consent is granted for all required Microsoft Graph application permissions, OnLink can authenticate to Entra ID, and user data is returned.
Troubleshooting
Symptom | Likely cause and fix |
|---|---|
AADSTS7000215 (invalid client secret) | The secret is wrong — often the Secret ID was copied instead of the Value. Create a new client secret and update the connection. |
AADSTS7000222 (client secret expired) | The secret has expired. Create a new client secret and update the connection. |
AADSTS700016 (application not found in directory) | The Client ID is wrong or the request went to the wrong tenant. Check the Application (client) ID and Tenant ID on the app's Overview page. |
AADSTS90002 (tenant not found) | The Tenant ID is wrong. Copy the Directory (tenant) ID from the app's Overview page. |
403 Forbidden / insufficient privileges from Microsoft Graph | A required application permission is missing or admin consent hasn't been granted (or was not re-granted after a change). Check API permissions and select Grant admin consent. |
Workflow user or group changes fail | Only read permissions are configured. Add write permission for User and Group, then grant admin consent. |
Microsoft documentation
Register an application with the Microsoft identity platform — app registration and client secret steps
Configure app permissions for a web API — adding application permissions and granting admin consent
Get access without a user — Microsoft Graph authentication with the client credentials flow
Microsoft Graph permissions reference — details of each permission
Microsoft Entra authentication and authorization error codes — AADSTS error descriptions