Ability to modify user access level via users API

Problem to solve

As of now, it is not possible to modify user access levels (regular, auditor and admin) via users API. If such a feature is available, automatic access/user provisioning systems can take advantage of it.

A premium customer with 3000 licenses has requested for this feature. ZD for internal use.

Intended users

  • Cameron (Compliance Manager)
  • Sidney (Systems Administrator)
  • Priyanka (Platform Engineer)

User experience goal

User access provisioning team can update user access level via API.

Proposal

Add an option to modify user access level to the PUT /users/:id endpoint. Read this in conjunction with #217112.

Further details

Use case: There are customers who are using automatic user access provisioning systems. If this feature is available, they can update access level of users over API without any manual intervention.

Permissions and Security

Admin access should be required to perform this action.

Documentation

https://docs.gitlab.com/ee/administration/auditor_users.html https://docs.gitlab.com/ee/api/users.html#user-modification

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Assignee Loading
Time tracking Loading