core/api: add uuid field to core api user http response (#7110)

* feat: Add uuid field to core api user response

* update schema

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: hor <hor@HOSRV>
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
horego 2023-10-09 12:34:38 +02:00 committed by GitHub
parent 026dfadb59
commit ab1b3b09d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -190,6 +190,7 @@ class UserSerializer(ModelSerializer):
"uid", "uid",
"path", "path",
"type", "type",
"uuid",
] ]
extra_kwargs = { extra_kwargs = {
"name": {"allow_blank": True}, "name": {"allow_blank": True},

View File

@ -40155,6 +40155,10 @@ components:
type: string type: string
type: type:
$ref: '#/components/schemas/UserTypeEnum' $ref: '#/components/schemas/UserTypeEnum'
uuid:
type: string
format: uuid
readOnly: true
required: required:
- avatar - avatar
- groups_obj - groups_obj
@ -40163,6 +40167,7 @@ components:
- pk - pk
- uid - uid
- username - username
- uuid
UserAccountRequest: UserAccountRequest:
type: object type: object
description: Account adding/removing operations description: Account adding/removing operations