API reference

Entra helpdesk settings

Read what a tenant's Entra app may do, and set JIT admin and self-service password reset for a workspace.

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.

GET/v1/workspaces/:workspace_id/entra/admin-capabilitiesAPI key + M2M token
workspace_idstringrequired
The client workspace UUID or slug.
Requestbash
curl 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"
Response 200json
{  "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:

ActionPermission
lock_unlock, password_reset, revoke_sessions, onboard_offboard, license_assignmentUser.ReadWrite.All
mfa_reset, temporary_access_passUserAuthenticationMethod.ReadWrite.All
group_membershipGroupMember.ReadWrite.All
guest_inviteUser.Invite.All
bitlocker_keyBitlockerKey.Read.All
laps_passwordDeviceLocalCredential.Read.All
device_actionsDeviceManagementManagedDevices.PrivilegedOperations.All
jit_elevation, remove_roleRoleManagement.ReadWrite.Directory
mfa_secret_auto_provisionApplication.ReadWrite.All
signin_logsAuditLog.Read.All
privileged_scanRoleManagement.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.

StatusWhen
404The 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.

GET/v1/workspaces/:workspace_id/entra/jit-settingsAPI key + M2M token
workspace_idstringrequired
Workspace UUID or slug.
Requestbash
curl 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"
Response 200json
{  "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.

PATCH/v1/workspaces/:workspace_id/entra/jit-settingsAPI key + M2M token
workspace_idstringrequired
Workspace UUID or slug.
enabledboolean
Turns JIT admin on or off.
rolesstring[]
Role keys from available_roles that may be granted.
max_minutesinteger
Longest grant, 10 to 480 minutes.
Requestbash
curl -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.

Statuserror_codeWhen
422invalidAn 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.

GET/v1/workspaces/:workspace_id/entra/self-serviceAPI key + M2M token
workspace_idstringrequired
Workspace UUID or slug.
Requestbash
curl 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"
Response 200json
{  "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}
FieldMeaning
methodsVerifications a person may pass: entra_push, sms_otp, email_otp.
requiredHow many of them a reset needs, 1 or 2.
excludedUPNs or emails that may not reset this way.
revoke_sessionsWhether a reset also signs the person out of their sessions.
from_ticketsWhether resets start from PSA tickets that match ticket_keywords.
resolved_status_idThe 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.

PATCH/v1/workspaces/:workspace_id/entra/self-serviceAPI key + M2M token
workspace_idstringrequired
Workspace UUID or slug.
enabledboolean
Turns self-service reset on or off.
methodsstring[]
One or more of entra_push, sms_otp, email_otp.
requiredinteger
1 or 2. Not more than the number of methods.
excludedstring[]
UPNs or emails to leave out.
revoke_sessionsboolean
Sign the person out after the reset.
from_ticketsboolean
Start resets from PSA tickets.
ticket_keywordsstring[]
1 to 30 phrases of up to 60 characters.
resolved_status_idstring
The PSA's status number (digits only), or empty to clear.
Requestbash
curl -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.

Statuserror_codeWhen
422invalidA 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.

GET/v1/workspaces/:workspace_id/entra/self-service/rollupAPI key + M2M token
workspace_idstringrequired
Master or MSP workspace UUID or slug.
Requestbash
curl 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"
Response 200json
{  "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 }}