9.2.1 - is_admin disappeared from v3 users api?

Summary

When calling /users as an admin, the is_admin property is no longer returned on each user where in 9.1.3 it was

Steps to reproduce

curl -s -S --insecure -X GET --header "PRIVATE-TOKEN: ...." "https://gitlab/api/v3/users" | grep -c 'is_admin'

On 9.1.3 this returns 1, on 9.2.1 it returns 0

What is the current bug behavior?

is_admin property not returned on any users

What is the expected correct behavior?

is_admin=true or false returned from all users

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Current User: gittest001 Using RVM: no Ruby Version: 2.3.4p301 Gem Version: 2.5.2 Bundler Version:1.14.6 Rake Version: 10.5.0 Redis Version: 3.9.103 Git Version: 2.11.1 Sidekiq Version:5.0.0

GitLab information Version: 9.2.2 Revision: 7755c0b8b4 Directory: /gitlab/gittest001/gitlab DB Adapter: postgresql URL: https://gittest001.hursley.ibm.com HTTP Clone URL: https://gittest001.hursley.ibm.com/some-group/some-project.git SSH Clone URL: gittest001@gittest001.hursley.ibm.com:some-group/some-project.git Using LDAP: yes Using Omniauth: no

GitLab Shell Version: 5.0.4 Repository storage paths:

  • default: /gitlab/gittest001/repositories Hooks: /gitlab/gittest001/gitlab-shell/hooks Git: /usr/local/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab Shell ...

GitLab Shell version >= 5.0.4 ? ... OK (5.0.4) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by gittest001:root, or gittest001:gittest001? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... can't check, you have no projects Running /gitlab/gittest001/gitlab-shell/bin/check Check GitLab API access: OK Access to /gitlab/gittest001/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 10 results)

Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory setup correctly? ... skipped (no tmp uploads folder yet) Init script exists? ... yes Init script up-to-date? ... yes projects have namespace: ... can't check, you have no projects Redis version >= 2.8.0? ... yes Ruby version >= 2.1.0 ? ... yes (2.3.4) Your git bin path is "/usr/local/bin/git" Git version >= 2.7.3 ? ... yes (2.11.1) Active users: 8

Checking GitLab ... Finished

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by Mike Ricketts