Skip to content

Commit 27375f6

Browse files
authored
chore(user): update user attributes
This also workarounds an GitLab issue, where private_profile, would reset to false if not supplied
1 parent 7843ace commit 27375f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gitlab/v4/objects.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ class UserManager(CRUDMixin, RESTManager):
414414
"search",
415415
"custom_attributes",
416416
"status",
417+
"two_factor",
417418
)
418419
_create_attrs = (
419420
tuple(),
@@ -438,6 +439,8 @@ class UserManager(CRUDMixin, RESTManager):
438439
"organization",
439440
"location",
440441
"avatar",
442+
"public_email",
443+
"private_profile",
441444
),
442445
)
443446
_update_attrs = (
@@ -459,6 +462,8 @@ class UserManager(CRUDMixin, RESTManager):
459462
"organization",
460463
"location",
461464
"avatar",
465+
"public_email",
466+
"private_profile",
462467
),
463468
)
464469
_types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute}

0 commit comments

Comments
 (0)