Skip to main content
Version: Organisations 1.2.8

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:

  • Client ID: its last four characters.
  • Expires: the client secret's expiry date, "from Microsoft" or "entered by hand", and the days remaining or "expired N days ago". "Not recorded" when Organisations has no date.
  • Last updated: when the credential was last saved, and by whom.

Organisations warns you from the date under Expires. From 30 days before it, Credentials shows "The Entra client secret expires in N days. Update it before then so single sign-on keeps working for every connected tenant." and each tenant in the list reads "Secret expires in N days". Once it has passed, Credentials shows "The Entra client secret expired N days ago. Single sign-on provisioning, directory search and assignments fail until it is updated." and the list reads "Secret expired".

If Expires reads "Not recorded"​

The expiry was not recorded when the credential was saved: Organisations could not read it from Microsoft and no date was entered. The Connect an identity provider page has no expiry field, so you often see this after your first connection. Without a date, Organisations cannot warn you. No warning appears under Credentials and the list shows no notice, even once the secret has expired.

To record it, update the credentials (below). Enter the secret again and set Secret expiry (optional) to the expiry date Entra shows for that secret (the app registration's Certificates & secrets, the Expires column). Entra shows a secret's Value only once: if you no longer have it, create a new client secret and use that. Organisations then records the date and can warn you before it runs out.

An expired secret stops Organisations reading your directory (people and groups) and your sign-in configuration. Until you update it, directory search, assignments and single sign-on set-up for new deployments fail, and Studio cannot be sent its people and groups.

Update the credentials​

To rotate the secret, or to record its expiry:

  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 Client secret (its Value, not its Secret ID). Save stays disabled until both are filled: "Enter the client ID and the client secret to continue."
  3. Set Secret expiry (optional) to the secret's expiry date from Entra: "Only used if Microsoft cannot report the expiry itself. Microsoft client secrets last at most 24 months." Leave it empty and Organisations records a date only if Microsoft reports one.
  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." followed by the expiry it recorded: from Microsoft when it allows that read, otherwise from your entry. Expires then shows the date and the days remaining. 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.

Directory access​

Organisations reads your directory to search for people and groups, to assign them, and to send each Studio the people and groups assigned to it. This needs:

  • Admin consent for the Microsoft Graph application permissions User.Read.All and Group.Read.All. The install already asks for both (the five permissions on Connect your identity provider), so a connected tenant has them unless consent was removed in Entra.
  • A client secret that has not expired. Keep its expiry recorded under Credentials so Organisations can warn you in time.

Groups are read from their direct members only. Members of nested groups, and of groups whose membership Entra hides, are not read.

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: a date under Expires with the days remaining, 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 (Troubleshooting the install).
  • An expired secret, or admin consent for User.Read.All or Group.Read.All withdrawn, also stops Studio offering anyone in Share chat: "Some people or groups can't be listed. Ask your Organisations administrator to check the Entra ID connection." (People missing from Share chat).
  • 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).