[solved]Where is my user ID in GitLab.com? – HowTo – GitLab Community Forum
Posted by jpluimers on 2018/12/06
Try https://gitlab.com/api/v4/users?username=??? where
???
is your username. This will only work if you are already logged into gitlab.Alternatively,
- go to https://gitlab.com/profile/account and copy your Private token.
- Then run the following command from a bash-like terminal:
curl --header "PRIVATE-TOKEN: AAAA" https://gitlab.com/api/v4/users?username=BBBB
where AAAA is your private token and BBBB is your username.
Source: [WayBack] [solved]Where is my user ID in GitLab.com? – HowTo – GitLab Community Forum
Works:
- https://gitlab.com/users/sign_in
- https://gitlab.com/api/v4/users?username=wiert
- You can even use this for a a different username, for instance this GitLab team member: https://gitlab.com/api/v4/users?username=northrup
Via the ID, you can find the issues assigned to the user:
- https://gitlab.com/dashboard/issues?assignee_id=885618
- https://gitlab.com/dashboard/issues?assignee_id=478289
–jeroen
Leave a Reply