Skip to content

Commit 1cc7b17

Browse files
author
Gauvain Pocentek
committed
define new optional attributes for user creation
1 parent 7afd232 commit 1cc7b17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ class User(GitlabObject):
559559
shortPrintAttr = 'username'
560560
requiredCreateAttrs = ['email', 'password', 'username', 'name']
561561
optionalCreateAttrs = ['skype', 'linkedin', 'twitter', 'projects_limit',
562-
'extern_uid', 'provider', 'bio']
562+
'extern_uid', 'provider', 'bio', 'admin',
563+
'can_create_group']
563564

564565
def Key(self, id=None, **kwargs):
565566
return self._getListOrObject(UserKey, id,

0 commit comments

Comments
 (0)