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:
		| @ -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}, | ||||||
|  | |||||||
| @ -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 | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 horego
					horego