Add filter for user_type in Users REST API
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
As an admin user of the Gitlab Users API I need to retrieve only a certain type of users I'm currently interested in (e.g. human users or project bots).
Intended users
User experience goal
The admin user should be able to use the Users API with GitLab to retrieve only users which have a certain value in their user_type attribute (introduced in #322975).
Proposal
Provide a filter like user_type=<enum value> (with <enum value> from the USER_TYPES enum in has_user_type.rb) to return only users of the requested type. This is related to the existing filter exclude_internal=true from #241144 (closed).
Links / references
Edited by 🤖 GitLab Bot 🤖