Skip to main content
Version: Organisations 1.2.0

Identity providers (Entra ID)

For Owners and Operators (or an IdentityProviderManager Role) connecting the Microsoft Entra ID tenant that Studio deployments sign in through; Viewers and IdentityProviderViewers read the list. Connect once; the console then provisions sign-in for each new deployment and searches your directory to assign people.

Before you start: this is the second Entra set-up. The first, a SAML Enterprise Application for the console itself, was done at install (Sign in with Entra ID). This page is the multi-tenant application registration. Whoever clicks Connect is sent to Microsoft to grant admin consent for your tenant.

Read the list​

Open Identity & access in the Dock and choose Identity providers. Under Connected identity providers (searchable with Search by tenant name), each tenant shows its name, its status (Connected, Revoked or Consent failed), "Secret expires in N days" or "Secret expired" within 30 days of the shared secret's expiry, its Type ("Microsoft Entra ID") and when it was Connected. With none: No identity providers connected yet.

Connect a tenant: Microsoft's side​

Click Connect identity provider on the Action Bar (without the permission it is disabled: "Requires the IdentityProviderManager role (or owner/operator)"). Connect an identity provider opens with Instructions for the Entra admin center:

  1. Start a new app registration: App registrations → New registration; any name.
  2. Make it multi-tenant, with this redirect URI: supported account types "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant)", platform Web, and the Redirect URI shown (your console's origin followed by /org-api/identity-providers/callback). If Entra asks which tenants may use the application, choose Allow all tenants (Entra pre-selects a restricted option).
  3. Copy the Application (client) ID from the registration's Overview.
  4. Add the five Application permissions (Microsoft Graph, Application permissions, not Delegated): Application.ReadWrite.OwnedBy, Application.Read.All, User.Read.All, Group.Read.All, AppRoleAssignment.ReadWrite.All, then Grant admin consent. What each one is used for is on Connect your identity provider; the delegated User.Read Entra adds by default is not used and may be removed.
  5. Create a client secret under Certificates & secrets and copy the Value immediately; it is shown once.

Connect a tenant: the console's side​

Under Identity Provider Configuration ("Configure the Microsoft Graph application used by this organisation."), which warns Shared application credentials: saving here updates the credentials every connected tenant uses.

  1. Provider type: Microsoft Entra ID.
  2. Client ID: the Application (client) ID. A value that is not a GUID is refused.
  3. Client secret: the secret's Value. If one is already configured, "Leave blank to keep the current secret". A value with spaces or line breaks is refused (usually a browser autofill).
  4. Under Connect tenant, click Connect and confirm Connect identity provider? with Connect. The button reads "Redirecting to Microsoft…"; sign in and grant admin consent, and Microsoft returns you to the tenant's page.

The tenant's display name is read from Microsoft Graph when Microsoft allows it, otherwise the tenant is named by its ID; there is nothing to type. The consent link is valid for 15 minutes. If the return fails, the list says why and what to do: consent declined, an incomplete return, credentials not configured, an expired attempt, Microsoft unreachable, or tenant details unreadable.

Read and delete a tenant​

Identity provider details shows Tenant name, Tenant ID, Status, Connected and Deployments (how many are linked). Linking to a deployment happens on the deployment's Identity tab or in the wizard (Deployment detail).

Delete on the Action Bar opens Delete identity provider: type the tenant name to confirm. It removes AlphaAgent's record of the connection only; it does not revoke the Enterprise Apps Microsoft created in your tenant. A tenant linked to deployments cannot be deleted: Cannot delete identity provider ("You can't delete this identity provider because it's linked to N Studio deployments."); unlink them first.

Manage the shared Entra credentials​

Every tenant's page carries Credentials: "One Entra application credential is shared by every tenant this organisation links. Updating it here updates it for all of them." It shows the Client ID (its last four characters), Expires (the date, "from Microsoft" or "entered by hand", and days remaining or "expired N days ago"; "Not recorded — update the credentials to record it" if unknown) and Last updated (with who). From 30 days before expiry a warning appears; after it, "Single sign-on provisioning, directory search and assignments fail until it is updated."

To rotate the secret:

  1. Click Update credentials (needs IdentityProviderManager, or Owner or Operator; otherwise disabled with "Requires the IdentityProviderManager role (or owner/operator)").
  2. In Update Entra application credentials, enter the Client ID and paste the new Client secret (its Value, not its Secret ID).
  3. Optionally set Secret expiry (optional), "Only used if Microsoft cannot report the expiry itself. Microsoft client secrets last at most 24 months."
  4. Click Save ("Verifying with Microsoft…"). The secret is verified with Microsoft before anything is replaced; a rejected secret changes nothing.

Success reads "Verified with Microsoft and saved." with the expiry recorded from Microsoft when it allows that read, otherwise from your entry. With no tenant connected yet it reads "Saved. Not verified yet — no tenant is connected to verify against; the first connection will use these credentials." Every update is written to Audit.

What you should see​

  • A connected tenant: Connected in the list, a consent time on its page, and the tenant shown as "<tenant> (Microsoft Entra ID)" in the deployment wizard's identity provider step, on a linked deployment's Overview and Identity tab, and on unlinked deployments' Identity tab.
  • A healthy credential: no secret expiry notice in the list and no warning under Credentials.

Notes​

  • Microsoft Entra ID is the only provider type.
  • Directory search or assignments failing: check Credentials for an expired secret.
  • A deployment's SSO provisioning failing with entra_credentials_unavailable is a credential problem for AlphaAgent; saml_auto_provisioning_failed usually clears on Resume (Failure codes).