Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 55.4k
    • Issues 55.4k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1.6k
    • Merge requests 1.6k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #219299
Closed
Open
Issue created May 27, 2020 by Ben Bodenmiller@bbodenmillerDeveloper

Projects in personal namespace don't properly show "Owner" in members list

Summary

The project members page is supposed to show each users effective permissions. Users with projects in their personal namespace are only shown as "Maintainer" on that project rather than "Owner".

Additionally project members API does not properly return owners ("access_level": 50) of personal namespace projects.

Also this bug has to be making some logic overly complex as well since for personal namespaces it cannot use access_level from project_authorizations table because currently projects in personal namespace will never have entries with access_level=50 in that table.

Steps to reproduce

  1. Create project in personal namespace
  2. See /-/project_members page
  3. GET /projects/:id/members/all
  4. See no members with "access_level": 50

Example Project

https://gitlab.com/bbodenmiller/windows-testing/-/project_members

What is the current bug behavior?

Showing as "Maintainer" rather than "Owner"

image

[
  {
    "id":5332,
    "name":"Ben Bodenmiller",
    "username":"bbodenmiller",
    "state":"active",
    "avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/5332/avatar.png",
    "web_url":"https://gitlab.com/bbodenmiller",
    "access_level":40,
    "expires_at":null
  },
  {
    "id":1361348,
    "name":"Ray Paik",
    "username":"rpaik",
    "state":"active",
    "avatar_url":"https://secure.gravatar.com/avatar/394c99b6425c5df21da8f51907580a8e?s=80\u0026d=identicon",
    "web_url":"https://gitlab.com/rpaik",
    "access_level":20,
    "expires_at":null
  }
]

What is the expected correct behavior?

Should show as "Owner" as one does on projects in group namespace

image

[
  {
    "id":5332,
    "name":"Ben Bodenmiller",
    "username":"bbodenmiller",
    "state":"active",
    "avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/5332/avatar.png",
    "web_url":"https://gitlab.com/bbodenmiller",
    "access_level":50,
    "expires_at":null
  },{
    "id":1361348,
    "name":"Ray Paik",
    "username":"rpaik",
    "state":"active",
    "avatar_url":"https://secure.gravatar.com/avatar/394c99b6425c5df21da8f51907580a8e?s=80\u0026d=identicon",
    "web_url":"https://gitlab.com/rpaik",
    "access_level":30,
    "expires_at":null
  }
]

Relevant logs and/or screenshots

Above

Output of checks

This bug happens on GitLab.com

Possible fixes

Set access_level to 50 rather than 40 for personal namespace project owners in project_authorizations table.

When fixed update https://docs.gitlab.com/ee/api/members.html and other help pages with similar caution.

Edited Aug 28, 2020 by Ben Bodenmiller
Assignee
Assign to
Time tracking