Restrict a User
post
/public/v1/users/{user}/restrictSigns an active user out everywhere and stops them signing in, while keeping them on the roster with their shifts and coordinator roles. A restricted user still counts towards the subscription, and any API keys they own keep working.
Refuses with a 409 when the user is not active, and with a 400 for the account owner.
userstringrequiredThe user UUID
Response
200application/jsonUserResource
dataobjectrequired▶Show 6 child attributesHide child attributes
idstringrequiredExample:u1s2e3r4-a5b6-47c8-9d0e-1f2a3b4c5d6efirst_namestringrequiredExample:Johnlast_namestringrequiredExample:DoeemailstringrequiredExample:john.doe@example.comstatusenum<string>requiredAvailable options:activedeactivatedinvitedrestrictedemployment_titlestring | nullrequiredExample:Service Manager
401Unauthenticated403Authorization error404Not found409An error