Skip to main content
PATCH
/
api
/
admin
/
users
/
{id}
/
cURL
curl --request PATCH \
  --url https://{server}/api/admin/users/{id}/ \
  --header 'Content-Type: application/json' \
  --cookie sessionid= \
  --data '
{
  "is_active": true,
  "is_system_admin": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "jsmith@example.com",
  "name": "<string>",
  "is_active": true,
  "is_system_admin": true,
  "organizations": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "date_joined": "2023-11-07T05:31:56Z",
  "last_login": "2023-11-07T05:31:56Z",
  "is_last_active_sysadmin": true
}

Authorizations

sessionid
string
cookie
required

Path Parameters

id
string<uuid>
required

Body

Only the two privilege flags are mutable through this surface; every other user field stays out of reach of sysadmin user-management.

is_active
boolean
is_system_admin
boolean

Response

200 - application/json
id
string<uuid>
required
read-only
email
string<email>
required
read-only
name
string
required
read-only
is_active
boolean
required
read-only

Designates whether this user should be treated as active. Unselect this instead of deleting accounts.

is_system_admin
boolean
required
read-only
organizations
object[]
required
read-only
date_joined
string<date-time>
required
read-only
last_login
string<date-time> | null
required
read-only
is_last_active_sysadmin
boolean
required
read-only