User admin approval - New User Status
Problem to solve
As part of &4491 , we want to create a new status where users can be placed before they are accepted by administrators.
Intended users
User experience goal
Proposal
Create a new status "blocked_pending_approval".
When a user is in this status:
- Make sure that
User#blocked?
also considers this value. That happens at https://gitlab.com/gitlab-org/gitlab/-/blob/7171cae11384b3dd3f1f90bbcd7a4b7e47b570fb/app/models/user.rb#L313 - A user in this state should not be able to log in.
- Only an instance admin should be able to change the user out of this state.
- An error message should be shown if they try to log in or recover their password. "Your account registration is awaiting approval. Please contact your system administrator for more details".
- The user should not count as a billable seat.
- If #257881 (closed) is enabled, then when a user registers they will be placed in this state after registration. They'll receive this message in the UI after they complete registration "Your account registration is awaiting approval. Please contact your system administrator for more details".
Further details
Permissions and Security
Documentation
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
Edited by Melissa Ushakov