admin
GET /api/v2/admin/users/{id}/
Changed onStaff 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
emailresponse property's maxLength was unset from254for the response status - info
the response optional property
emailbecame read-only for the status - info
the response property
emailbecame required for the status
- breaking