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",
"path",
"type",
"uuid",
]
extra_kwargs = {
"name": {"allow_blank": True},

View File

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