These calls configure the helpdesk side of a workspace's Entra connection: which admin actions the tenant's app is permitted to run, the JIT admin policy and self-service password reset.
All calls take an app key or workspace key in Authorization and an M2M token in X-Authorization. The M2M token's app has to be in the workspace in the path. With a member JWT instead, changes take an owner or admin (403 workspace_admin_required). The common errors are listed on Entra connection.
Get admin capabilities#
Reports which helpdesk admin actions the tenant's Entra app can run now, from the Microsoft Graph application permissions granted to it, and the admin consent URL that grants more. When Graph cannot be read, every action is false and lookup_error says why.
/v1/workspaces/:workspace_id/entra/admin-capabilitiesAPI key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/entra/admin-capabilities \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "feature_enabled": true, "granted": ["RoleManagement.Read.Directory", "User.ReadWrite.All", "UserAuthenticationMethod.ReadWrite.All"], "actions": { "lock_unlock": true, "password_reset": true, "revoke_sessions": true, "mfa_reset": true, "onboard_offboard": true, "license_assignment": true, "group_membership": false, "guest_invite": false, "bitlocker_key": false, "laps_password": false, "device_actions": false, "jit_elevation": false, "mfa_secret_auto_provision": false, "temporary_access_pass": true, "signin_logs": false, "privileged_scan": true, "remove_role": false, "jit": false }, "privileged_scan": { "roles": true, "users": false, "group_members": false, "app_permissions": false, "mfa_registration": false, "sign_in_activity": false }, "consent_url": "https://login.microsoftonline.com/common/adminconsent?client_id=..."}Each action and the Graph permission it needs:
| Action | Permission |
|---|---|
| lock_unlock, password_reset, revoke_sessions, onboard_offboard, license_assignment | User.ReadWrite.All |
| mfa_reset, temporary_access_pass | UserAuthenticationMethod.ReadWrite.All |
| group_membership | GroupMember.ReadWrite.All |
| guest_invite | User.Invite.All |
| bitlocker_key | BitlockerKey.Read.All |
| laps_password | DeviceLocalCredential.Read.All |
| device_actions | DeviceManagementManagedDevices.PrivilegedOperations.All |
| jit_elevation, remove_role | RoleManagement.ReadWrite.Directory |
| mfa_secret_auto_provision | Application.ReadWrite.All |
| signin_logs | AuditLog.Read.All |
| privileged_scan | RoleManagement.Read.Directory |
privileged_scan lists the parts of the privileged access scan and whether each one's read permission is granted: roles (RoleManagement.Read.Directory, the only one required), users (User.Read.All), group_members (GroupMember.Read.All), app_permissions (Application.Read.All), mfa_registration (UserAuthenticationMethod.Read.All) and sign_in_activity (AuditLog.Read.All).
jit is true when onboard_offboard, jit_elevation and temporary_access_pass all are. While admin actions are off for the workspace, feature_enabled is false and every action is false. A workspace connected through a partner connection (GDAP) gets no consent_url: more is granted by a setup run on the MSP. ceiling is set only for member JWT callers.
| Status | When |
|---|---|
| 404 | The workspace is not connected (errors: "Not connected"). |
Get JIT admin settings#
Returns the policy for JIT admin accounts (time-limited admin accounts) in the client tenant: whether they are on, which directory roles may be granted and the longest grant.
/v1/workspaces/:workspace_id/entra/jit-settingsAPI key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/entra/jit-settings \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "enabled": false, "roles": ["helpdesk_admin", "user_admin", "exchange_admin"], "max_minutes": 60, "available_roles": { "helpdesk_admin": "Helpdesk Administrator", "user_admin": "User Administrator", "authentication_admin": "Authentication Administrator", "exchange_admin": "Exchange Administrator", "sharepoint_admin": "SharePoint Administrator", "teams_admin": "Teams Administrator", "intune_admin": "Intune Administrator", "license_admin": "License Administrator", "security_reader": "Security Reader", "global_reader": "Global Reader", "global_admin": "Global Administrator" }}The defaults are enabled: false, roles helpdesk_admin, user_admin and exchange_admin, and max_minutes: 60.
Update JIT admin settings#
Changes the policy. Fields you leave out keep their value.
/v1/workspaces/:workspace_id/entra/jit-settingsAPI key + M2M tokencurl -X PATCH https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/entra/jit-settings \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "roles": ["helpdesk_admin"], "max_minutes": 120 }'The response has the same shape as Get JIT admin settings.
| Status | error_code | When |
|---|---|---|
| 422 | invalid | An unknown role, or max_minutes outside 10 to 480. |
Get self-service reset settings#
Returns the workspace's self-service password reset settings: the people of the client tenant reset their own password after passing verifications.
/v1/workspaces/:workspace_id/entra/self-serviceAPI key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/entra/self-service \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "enabled": false, "methods": ["entra_push", "sms_otp"], "required": 1, "excluded": [], "revoke_sessions": true, "from_tickets": false, "ticket_keywords": ["password", "locked out", "can't sign in", "cannot sign in", "can't log in", "cannot log in", "can't login", "forgot"], "resolved_status_id": null}| Field | Meaning |
|---|---|
| methods | Verifications a person may pass: entra_push, sms_otp, email_otp. |
| required | How many of them a reset needs, 1 or 2. |
| excluded | UPNs or emails that may not reset this way. |
| revoke_sessions | Whether a reset also signs the person out of their sessions. |
| from_tickets | Whether resets start from PSA tickets that match ticket_keywords. |
| resolved_status_id | The PSA status number a ticket is set to after the reset. |
Update self-service reset settings#
Changes the settings. Fields you leave out keep their value.
/v1/workspaces/:workspace_id/entra/self-serviceAPI key + M2M tokencurl -X PATCH https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/entra/self-service \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "methods": ["entra_push", "sms_otp"], "required": 2 }'The response has the same shape as Get self-service reset settings.
| Status | error_code | When |
|---|---|---|
| 422 | invalid | A field fails its check above. The error names it. |
List self-service reset by client#
Returns every client under the workspace (an MSP's clients, or a Master's whole tree) with its saved settings and what applies: a reset is on only when the setting is on and the tenant is connected and enabled, and entra_push only where Authenticator push is on.
/v1/workspaces/:workspace_id/entra/self-service/rollupAPI key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/entra/self-service/rollup \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "workspace_id": "0193f8aa-1111-7222-8333-444444444444", "clients": [ { "workspace": { "id": "0193f8aa-5555-7666-8777-888888888888", "name": "Contoso", "slug": "contoso", "workspace_type": "msp_client" }, "entra": { "connected": true, "enabled": true, "tenant_id": "c87af060-e83b-4ed4-bf27-1d6ac3584c90", "ms_authenticator_enabled": true }, "settings": { "enabled": true, "methods": ["entra_push", "sms_otp"], "required": 1, "excluded": [], "revoke_sessions": true, "from_tickets": false, "ticket_keywords": ["password"], "resolved_status_id": null }, "configured_enabled": true, "enabled": true, "methods": ["entra_push", "sms_otp"], "required": 1 } ], "totals": { "clients": 1, "on": 1 }}