Chelabase
ManagementApp users

Deactivate a user

POST
/v1/projects/{id}/users/{user_id}/deactivate

Bans the user: they can't sign in, and their sessions end. The sessions are revoked first, so a 503 still ended them.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Project id

Formatuuid
user_id*string

User id

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/deactivate"
{  "created_at": "2019-08-24T14:15:22Z",  "email": "string",  "email_verified": true,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "state": "active"}