Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8443

Closed
Open
Created Dec 12, 2014 by Administrator@rootOwner

Namespace ID ambiguous as it isn't clear if is a user ID or a group ID

Created by: CCTJNII

I'm attempting to categorize projects via the API and I cannot seem to determine a clear way to tell if a project is in a user namespace or a group namespace. Looking at the example given on https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md:

   "namespace": {
      "created_at": "2013-09-30T13: 46: 02Z",
      "description": "",
      "id": 3,
      "name": "Diaspora",
      "owner_id": 1,
      "path": "diaspora",
      "updated_at": "2013-09-30T13: 46: 02Z"
    },

An id is given for the namespace, but it isn't clear if that namespace belongs to a user or a group. Via trial and error against our gitlab it appears the IDs are not unique between users and groups, so a simple lookup doesn't suffice. I have been unable to determine any user/group signatures for namespace that appear reliable.

For resolution I believe we should add a field that shows what kind of id 'id' is, or clarify the namespace documentation so unseasoned users don't chase their tails on this. Thanks.

Assignee
Assign to
Time tracking