Add User Locked state in a way that is available in API
Problem to solve
There is no way to identify locked user accounts via the (REST) API.
Proposal
Update the state
of the user to locked
when account is locked. Change back to active
when unlocked.
API: https://docs.gitlab.com/ee/api/users.html#single-user
Use Cases
A) GitLab Support
Support frequently gets questions from users if their account is "locked". With the implementation of Arkose, this frequency has increased substantially. To be able to identify these users, we need something exposed in the API to allow our system to let support team members know that the user is locked (without requiring an admin account), and for possible automations (even just to auto-response appropriately).
B) Customer
A Large GitLab Premium customer can benefit from this to query on user Locked state to allow for possible automations in their workflow.