From ab1b3b09d6e303219dbd033585b720f22655a676 Mon Sep 17 00:00:00 2001 From: horego <40524748+horego@users.noreply.github.com> Date: Mon, 9 Oct 2023 12:34:38 +0200 Subject: [PATCH] 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 --------- Signed-off-by: Jens Langhammer Co-authored-by: hor Co-authored-by: Jens Langhammer --- authentik/core/api/users.py | 1 + schema.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index 09a5dc553..be59dc1c1 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -190,6 +190,7 @@ class UserSerializer(ModelSerializer): "uid", "path", "type", + "uuid", ] extra_kwargs = { "name": {"allow_blank": True}, diff --git a/schema.yml b/schema.yml index 1d36b4530..03eed6d01 100644 --- a/schema.yml +++ b/schema.yml @@ -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