From df9a5b352c6aca058ec24f2c9be58e8c93f716c2 Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Thu, 22 Jan 2026 19:40:41 +0100 Subject: [PATCH] fix(users): allow 'update' API without required email/name/username rewrites Signed-off-by: Adrian DC --- gitlab/v4/objects/users.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gitlab/v4/objects/users.py b/gitlab/v4/objects/users.py index dec0b375d..40455ade6 100644 --- a/gitlab/v4/objects/users.py +++ b/gitlab/v4/objects/users.py @@ -440,8 +440,10 @@ class UserManager(CRUDMixin[User]): ) ) _update_attrs = RequiredOptional( - required=("email", "username", "name"), optional=( + "email", + "username", + "name", "password", "skype", "linkedin", @@ -462,7 +464,7 @@ class UserManager(CRUDMixin[User]): "private_profile", "color_scheme_id", "theme_id", - ), + ) ) _types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute}