Put users into a pending state once `User Cap` limit is reached
Summary
When a SM instance reaches the Max Users limit created by the admin, users who are subsequently added or request access will go into a blocked_pending_approval state.
- The admin should be able to approve individual user requests while the max value has been reached.
- When the max is reached, users who are subsequently added or request access will go into a
blocked_pending_approvalstate. reference - The admin will need to increase the max value if they would like open registration to continue.
Design
For the pending members feature, we're going to utilize this design: https://gitlab.com/groups/gitlab-org/-/uploads/52b8cb4df563dc7175b838ac705ffd16/Group_52.png, borrowed from https://gitlab.com/gitlab-org/gitlab/-/issues/21648
Testing & Availability
-
blocked_pending_approvalset tofalsefor new user creation ifuser capfield is not set -
blocked_pending_approvalfor all new sign-ups isRequire admin approval for new sign-upsistrue -
blocked_pending_approvalset totruefor all new sign-ups once instanceuser capis met
Update: per this comment we are using User Cap for this feature.
Edited by Amparo Luna