admin

GET /api/v2/admin/users/{id}/

Changed on

Staff viewset for managing users.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

id, integer required

A unique integer value identifying this user.

Response

User required

Staff serializer for users, includes all fields for admin management.

id, integer required
username, string required

Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.

first_name, string
last_name, string
email, string email required
user_permissions, string[] required
is_superuser, boolean required

Designates that this user has all permissions without explicitly assigning them.

date_joined, string date-time required
language, union
groups, Group[] required
is_active, boolean

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

is_staff, boolean required

Designates whether the user can log into this admin site.

is_system, boolean required

Changes

    • breaking

      the email response property's maxLength was unset from 254 for the response status

    • info

      the response optional property email became read-only for the status

    • info

      the response property email became required for the status