Skip to content

Add user root query to GraphQL API

Max Woolf requested to merge 215658-add-user-graphql into master

What does this MR do?

Add a root user query to the GraphQL API with an id or username parameter.

This MR represents the first step towards being able to generate a report similar to the one detailed in #215658 (closed)

{
  user(username: "root") {
    id
    name
  }
}

{
  user(id: "gid://gitlab/User/3") {
    id
    name
  }
}

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Luke Duncalfe

Merge request reports