core_users_me_retrieve
GET/core/users/me/
Get information about current user
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
user
object
required
User Serializer for information a user can retrieve about themselves
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
Possible values: <= 150 characters
, Value must match regular expression ^[\w.@+-]+$
User's display name.
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
groups
object[]
required
Possible values: <= 254 characters
User's avatar, either a http/https URL or a data URI
settings
object
required
Get user settings with brand and group settings applied
Get user settings with brand and group settings applied
Possible values: [internal
, external
, service_account
, internal_service_account
]
Get all system permissions assigned to the user
original
object
User Serializer for information a user can retrieve about themselves
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
Possible values: <= 150 characters
, Value must match regular expression ^[\w.@+-]+$
User's display name.
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
groups
object[]
required
Possible values: <= 254 characters
User's avatar, either a http/https URL or a data URI
settings
object
required
Get user settings with brand and group settings applied
Get user settings with brand and group settings applied
Possible values: [internal
, external
, service_account
, internal_service_account
]
Get all system permissions assigned to the user
{
"user": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"is_superuser": true,
"groups": [
{
"name": "string",
"pk": "string"
}
],
"email": "user@example.com",
"avatar": "string",
"uid": "string",
"settings": {},
"type": "internal",
"system_permissions": [
"string"
]
},
"original": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"is_superuser": true,
"groups": [
{
"name": "string",
"pk": "string"
}
],
"email": "user@example.com",
"avatar": "string",
"uid": "string",
"settings": {},
"type": "internal",
"system_permissions": [
"string"
]
}
}
- application/json
- Schema
- Example (from schema)
Schema
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "string",
"code": "string"
}