Entra ID (formerly Azure AD)

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

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

  1. Sign in to the Microsoft Entra admin center.

  2. Browse to Entra ID → App registrations. (In the Azure portal: open Microsoft Entra ID → App registrations.)

  3. Select New registration.

  4. Enter a clear application name, for example OnLink Connection.

  5. Keep the default supported account type (single tenant) unless your organization requires a different option.

  6. Select Register.

  7. 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.

  1. In the app registration, select API permissions.

  2. Select Add a permission.

  3. Select Microsoft Graph.

  4. Choose Application permissions, not delegated permissions.

  5. Under Select permissions, search for and select each permission in the table below.

  6. Select Add permissions.

  7. 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

Permission (Application)

Purpose

User.Read.All

Read users

Group.Read.All

Read groups

Organization.Read.All

Read organization information

Application.Read.All

Read applications

Directory.Read.All

Read directory data

DeviceManagementApps.Read.All

Required for Microsoft Intune app management

DeviceManagementManagedDevices.Read.All

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.

  1. In the app registration, select Certificates & secrets → Client secrets.

  2. Select New client secret.

  3. Enter a description that identifies the secret, for example OnLink connection.

  4. Select an expiration period that follows your organization's security policy. Microsoft allows up to 24 months and recommends less than 12.

  5. Select Add.

  6. 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

  1. In OnLink, create a new connection and select Entra ID.

  2. Enter the Tenant ID (Directory (tenant) ID) from step 1.

  3. Enter the Client ID (Application (client) ID) from step 1.

  4. Paste the Client Secret value from step 3.

  5. Save the connection.

Step 5: Verify the connection

  1. Run a test sync (or Get Data) using the new Entra ID connection.

  2. Confirm that users (and groups, if used) are returned and that the fields you need are populated.

  3. 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

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