Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/e179039e4d5567b3ca801d609e32116e to your computer and use it in GitHub Desktop.
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/8a49e36d98470970a53a451c073b0941815d7d0c
## summary : get current user gitlab information
## keywords : gitlab, snippets, graphql
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## 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