From 051788dba2d2ad0d2f88e85f9acddaa5216ba4a1 Mon Sep 17 00:00:00 2001 From: hor Date: Mon, 9 Oct 2023 08:31:37 +0200 Subject: [PATCH 1/2] feat: Add uuid field to core api user response --- authentik/core/api/users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index 09a5dc5534da..32a678549659 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -190,6 +190,7 @@ class Meta: "uid", "path", "type", + "uuid" ] extra_kwargs = { "name": {"allow_blank": True}, From 20dfd72559aa15dc7ea7ba28a45e3b1cbc22d9ff Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 9 Oct 2023 11:49:56 +0200 Subject: [PATCH 2/2] update schema Signed-off-by: Jens Langhammer --- authentik/core/api/users.py | 2 +- schema.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index 32a678549659..be59dc1c178a 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -190,7 +190,7 @@ class Meta: "uid", "path", "type", - "uuid" + "uuid", ] extra_kwargs = { "name": {"allow_blank": True}, diff --git a/schema.yml b/schema.yml index 1d36b4530c31..03eed6d01667 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