8000 admin does not work when creating user · Issue #22 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
admin does not work when creating user #22
Closed
@marcolefo

Description

@marcolefo

Hello again

I think I have found an other bug, sorry ;)

When creating user, the "admin" parameters does not work :

>>> u=gl.User({"username": "john", "email": "john@youpi.fr", "name": "John", "password": "toto12345", "projects_limit": 10, "admin": True, "can_create_group": True})
>>> u.save()
>>> print u.admin
True
>>> print u
<class 'gitlab.User'> => {u'can_create_project': True, u'twitter': None, u'linkedin': None, u'color_scheme_id': 1, u'skype': None, u'id': 55, 'projects_limit': 10, u'state': u'active', u'provider': None, u'extern_uid': None, 'email': u'john@youpi.fr', u'website_url': None, 'username': u'john', u'bio': None, 'can_create_group': None, u'is_admin': None, 'password': 'toto12345', 'name': u'John', 'admin': True, u'created_at': u'2014-02-21T12:54:02.098+01:00', 'gitlab': <gitlab.Gitlab object at 0x7f10014f0310>, u'theme_id': 2}

Here we see that "is_admin" value is None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0