I am using a self-hosted 13.3.5-ee.
If I execute this GraphQL query using the /-/graphql-explorer
endpoint on my GitLab deployment:
query {
users {
nodes {
id
name
username
}
}
}
then 91 users are returned. This is clearly not all users on the deployment, though. There are users I know exist but which are not included in the result. This includes users which are referenced as the assignees of issues I can retrieve from the graphql interface. It also includes users on the team I work with who I know have accounts. I can also query for those missing users individually using this GraphQL query:
query {
user(username: "someusername") {
id
}
}
and receive a result which seems to correctly describe the user.
Why are some users omitted from the results for this query? I know that large result sets require dealing with pagination but the default page size is supposed to be 100 and I am receiving fewer results than this. Additionally, if I request pageinfo
and ask for the users after the resulting endCursor
I receive no items.
How do submit a query that gets me all users (or at least lets me page through all users)?