Skip to content

Instantly share code, notes, and snippets.

@ferdinandosimonetti
Last active January 25, 2022 11:26
Show Gist options
  • Save ferdinandosimonetti/561bca1b95fd52c661b7f519034d876b to your computer and use it in GitHub Desktop.
Save ferdinandosimonetti/561bca1b95fd52c661b7f519034d876b to your computer and use it in GitHub Desktop.
Lookup Gitlab users by email / username (works with blocked users too)
ferdi@DESKTOP-7DEMIAH:/mnt/c/Users/ferdi$ curl http://gitlab.domain.it/api/v4/users?private_token=vhJEVFPdqGl59C42\&search=one.two@three.it | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 835 100 835 0 0 8434 0 --:--:-- --:--:-- --:--:-- 8434
[
{
"id": 132,
"name": "Uno Due",
"username": "unodue",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/2ca6a022f78ab6fd85506b5c2338789a?s=80&d=identicon",
"web_url": "http://gitlab.domain.it/unodue",
"created_at": "2020-10-16T13:28:09.967Z",
"bio": null,
"location": null,
"public_email": "",
"skype": "",
"linkedin": "",
"twitter": "",
"website_url": "",
"organization": null,
"job_title": "",
"work_information": null,
"last_sign_in_at": "2021-04-14T09:49:59.918Z",
"confirmed_at": "2020-10-16T13:28:09.866Z",
"last_activity_on": "2021-04-20",
"email": "one.two@three.it",
"theme_id": 1,
"color_scheme_id": 1,
"projects_limit": 100000,
"current_sign_in_at": "2021-04-20T10:47:51.757Z",
"identities": [],
"can_create_group": true,
"can_create_project": true,
"two_factor_enabled": false,
"external": false,
"private_profile": false,
"is_admin": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment