Appearance
PUT
/admin/auth/users/{userId}/login/sign-inRequired scope:
user:updateSwitching it off sends the user back to Visma Connect and ends every sign-in here; the password and authenticator are kept for switching back.
Parameters ​
Path parameters
userId stringRequest body ​
JSON
{
"enabled": true
}
Response ​
The sign-in was switched.
| Error code | Description |
|---|---|
auth.login.invalid-request | The request does not say whether sign-in is enabled. |
auth.password.not-set | The user has no password. |
auth.user.credentials-managed-elsewhere | The user also belongs to other tenants or is a system administrator; only a system administrator can manage their credentials. |
auth.user.interactive-sign-in-required | Credentials can only be managed from a signed-in session. |
auth.user.not-found | No such user in this tenant. |