[API] - Filter "without_projects" on /users is not working
Summary
Can't use the attribute "without_projects" on GET /users in APIv4
Steps to reproduce
curl --request GET --header "PRIVATE-TOKEN: XXXXXXXXX" "https://gitlab.mycompany.com/api/v4/users?without_projects=true&per_page=50&page=180" | jq -r '.[] | "\(.id) \(.username) \(.email) \(.last_sign_in_at)"'
OR
curl --request GET --header "PRIVATE-TOKEN: XXXXXXXXX" "https://gitlab.mycompany.com/api/v4/users?without_projects=false&per_page=50&page=180" | jq -r '.[] | "\(.id) \(.username) \(.email) \(.last_sign_in_at)"'
OR
curl --request GET --header "PRIVATE-TOKEN: XXXXXXXXX" "https://gitlab.mycompany.com/api/v4/users?without_projectsasdfasdfasdfasdf=true&per_page=50&page=180" | jq -r '.[] | "\(.id) \(.username) \(.email) \(.last_sign_in_at)"'
return exactly the same output. It looks like "without_projects" is not implemented at all. I followed this documentation -> https://docs.gitlab.com/ce/api/users.html#for-admins
What is the current bug behavior?
The command lines above do not output users without projects but a mix of people having and not having projects.
What is the expected correct behavior?
It should ouput only users without any personal or joined projects.
Results of GitLab environment info
System information
System: RedHatEnterpriseServer 6.10
Current User: git
Using RVM: no
Ruby Version: 2.6.3p62
Gem Version: 2.7.9
Bundler Version:1.17.3
Rake Version: 12.3.3
Redis Version: 3.2.12
Git Version: 2.22.2
Sidekiq Version:5.2.7
Go Version: unknown
GitLab information
Version: 12.5.5
Revision: 64b66e0cb6d
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 10.9
URL: https://gitlab.mycompany.com
HTTP Clone URL: https://gitlab.mycompany.com/some-group/some-project.git
SSH Clone URL: git@gitlab.mycompany.com:some-group/some-project.git
Using LDAP: yes
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 10.2.0
Repository storage paths:
- default: /git/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git```