Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:20
Show Gist options
  • Select an option

  • Save dacr/e179039e4d5567b3ca801d609e32116e to your computer and use it in GitHub Desktop.

Select an option

Save dacr/e179039e4d5567b3ca801d609e32116e to your computer and use it in GitHub Desktop.
get current user gitlab information / published by https://github.com/dacr/code-examples-manager #6674658a-1460-43fd-9697-0ad75b57e462/4e87e45324104aa97831439a1a78b89ff72924f3
## summary : get current user gitlab information
## keywords : gitlab, snippets, graphql
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : 6674658a-1460-43fd-9697-0ad75b57e462
## created-on : 2021-04-19T15:15:59Z
## managed-by : https://github.com/dacr/code-examples-manager
# schema specs => https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/graphql/reference/gitlab_schema.graphql
# try online using : https://gitlab.com/-/graphql-explorer
{
#currentUser {
# name
# username
# publicEmail
#}
user(username:"crosson.david") {
name
publicEmail
webUrl
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment