Skip to content

'Gitlab' object has no attribute 'user_projects' #324

Closed

Description

@ektich

Documentation on readthedocs for version 1.0.1 suggests using user_projects.create call to create project on behalf of a user, but trying to do it results in AttributeError: 'Gitlab' object has no attribute 'user_projects'. I can see references to UserProjectManager in the code, but I cannot figure out how to create user projects. In any case documentation has to be updated.

Activity

  1. gpocentek commented on Sep 26, 2017

    @gpocentek
    Contributor

    Thanks for reporting this issue @ektich.

    I've updated the docs. You need to create a user object first, then user the projects manager to create the project. If the user already exists you can do something like gl.users.get(user_id, lazy=True).projects.create(project_data).

  2. locked as resolved and limited conversation to collaborators on Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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