API reference

Microsoft Entra

Connect workspaces to Microsoft Entra tenants for Authenticator push, approve/deny push, directory sync and GDAP.

Scute signs in to a client's Microsoft tenant through an Entra app registration. With the tenant connected, a verification can send a Microsoft Authenticator push, Scute can read the tenant's users, and the helpdesk actions can act in the tenant.

Which app a workspace uses#

Workspaces form a tree: Master, then MSP, then client. Each workspace resolves its Entra app by walking up that tree.

SourceSet withUsed by
The workspace's own appOwn appThat workspace and the workspaces below it
The Master's appMaster appEvery MSP and client under the Master
An MSP's partner connectionGDAPClients linked to a tenant the MSP reaches through GDAP
Scute's appNothing to setWorkspaces with no app above them

The tenant itself is connected on the client workspace: by admin consent (Connection), by the first user synced with an Entra tid, or through a GDAP link.

Credentials#

The calls on these pages take one of two pairs. Both use a key in Authorization and a second credential in X-Authorization.

LabelAuthorizationX-AuthorizationPages
Workspace key + M2M tokenWorkspace key (scworks_...) of the Master or MSP in the pathM2M token (scm2m_...) of an app in that workspace, or a member JWTMaster app, GDAP, approve/deny setup
API key + M2M tokenApp key or workspace keyM2M token of an app in the workspace in the pathConnection, own app, helpdesk settings, approve/deny status

On the second pair the M2M token's app has to sit in the workspace named in the path. An M2M token from a Master app is refused on a client workspace with 403 workspace_access_denied. See Authentication.

An M2M token needs its read scope for GET calls and its write scope for every other call. Without it the call returns 403 insufficient_scope.

Calls made with a member JWT instead of an M2M token check the person's role: changes take an owner or admin of the workspace and return 403 workspace_admin_required otherwise. A key and M2M token carry no role and pass on the key alone.

App registration#

Register the app in the Azure portal under Microsoft Entra ID, App registrations. Choose multitenant when the clients live in separate tenants. Add these Web redirect URIs:

Redirect URINeeded for
https://api.scute.io/v1/auth/entra/auth-oidcAuthenticator push. Always required.
https://api.scute.io/v1/auth/entra/admin-consent-callbackConsent links Scute creates, including Connect a tenant
https://api.scute.io/v1/auth/entra/gdap-callbackGDAP only

The list for the deployment is in redirect_uris of Get the Master app. Microsoft checks the redirect URI before it shows a sign-in, and a missing one fails with AADSTS50011.

Delegated permissions for Authenticator push: openid, profile, email, offline_access, User.Read. Directory sync also needs the application permissions User.Read.All and UserAuthenticationMethod.Read.All, consented in each client tenant.

The app proves itself to Microsoft with a federated credential (Scute stores no secret) or a client secret. See Master app.

Authenticator push#

A Microsoft Authenticator push is a verification with method set to entra_push. Create it with Create a workspace challenge or on an app with Challenges.

  1. The user record needs an Entra identity: upn (who receives the push) and oid. Send them in the challenge's user.entra block, or sync users first with directory sync or bulk user sync. The first user.entra.tid sent for a client connects the client to that tenant.
  2. Scute signs the user in through the resolved Entra app, and Microsoft sends the number-match prompt to the phone. entra_number is null at first.
  3. Read the two-digit entra_number from the challenge, or from the challenge.entra_push.number_ready webhook, and show it to the user.
  4. The challenge ends as verified, denied, expired or failed. The webhooks challenge.entra_push.completed, challenge.entra_push.denied, challenge.entra_push.expired and challenge.entra_push.failed report it. See Webhooks.

Send mode: "approve" with entra_push for an Approve / Deny prompt with no number. That mode needs a secret in each client tenant: see Approve/deny push.

Authenticator enrollment#

A push reaches a user only after they have added Microsoft Authenticator for their work account. The user does this once:

  1. Install Microsoft Authenticator from the App Store or Google Play.
  2. On a computer, open aka.ms/mfasetup and sign in with the work account.
  3. Choose Add sign-in method, then Authenticator app, and scan the QR code with the app (+, Work or school account, Scan a QR code).
  4. Approve the test notification.

When the last directory sync recorded that a user has no Authenticator, creating a push for them returns 400 invalid_request ("User has not registered Microsoft Authenticator") and no challenge is created. Sync again after the user enrolls. A push that cannot be delivered (no Authenticator, phone offline, notifications off) ends as failed.

Pages#

Connection
Connect a client tenant, directory sync, target app.
Helpdesk settings
Granted permissions, JIT admin, self-service reset.
Own app
A workspace's own Entra app, saved after a test.
Master app
The Master's app and its federated credential.
GDAP
An MSP's partner connection and its client tenants.
Approve/deny push
The per-tenant secret for Approve / Deny prompts.