Skip to content

Commit 0d2afb8

Browse files
AdrianDCnejch
authored andcommitted
feat(users): allow updating only a user's email, username or name
Signed-off-by: Adrian DC <radian.dc@gmail.com>
1 parent 8734e41 commit 0d2afb8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

gitlab/v4/objects/users.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,10 @@ class UserManager(CRUDMixin[User]):
453453
)
454454
)
455455
_update_attrs = RequiredOptional(
456-
required=("email", "username", "name"),
457456
optional=(
457+
"email",
458+
"username",
459+
"name",
458460
"password",
459461
"skype",
460462
"linkedin",
@@ -475,7 +477,7 @@ class UserManager(CRUDMixin[User]):
475477
"private_profile",
476478
"color_scheme_id",
477479
"theme_id",
478-
),
480+
)
479481
)
480482
_types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute}
481483

0 commit comments

Comments
 (0)