Sign-up restrictions (CORE ONLY)

You can enforce the following restrictions on sign ups:

  • Disable new sign ups.
  • Require administrator approval for new sign ups.
  • Require user email confirmation.
  • Allow or deny sign ups using specific email domains.

Disable new sign ups

By default, any user visiting your GitLab domain can sign up for an account. For customers running public-facing GitLab instances, we highly recommend that you consider disabling new sign ups if you do not expect public users to sign up for an account.

To disable sign ups:

  1. Go to Admin Area > Settings > General and expand Sign-up restrictions.
  2. Clear the Sign-up enabled checkbox, then select Save changes.

Require administrator approval for new sign ups

When this setting is enabled, any user visiting your GitLab domain and signing up for a new account must be explicitly approved by an administrator before they can start using their account. This setting is enabled by default for newly created instances. This setting is only applicable if sign ups are enabled.

To require administrator approval for new sign ups:

  1. Go to Admin Area > Settings > General and expand Sign-up restrictions.
  2. Select the Require admin approval for new sign-ups checkbox, then select Save changes.

Require email confirmation

You can send confirmation emails during sign up and require that users confirm their email address before they are allowed to sign in.

To enforce confirmation of the email address used for new sign ups:

  1. Go to Admin Area > Settings > General and expand Sign-up restrictions.
  2. Select the Enable email restrictions for sign ups checkbox, then select Save changes.

User cap (CORE ONLY)

Introduced in GitLab 13.6.

When the number of users reaches the user cap, any user who is added or requests access must be approved by an administrator before they can start using their account.

Soft email confirmation

CAUTION: Warning: This feature might not be available to you. Check the version history note above for details.

The soft email confirmation improves the signup experience for new users by allowing them to sign in without an immediate confirmation when an email confirmation is required. GitLab shows the user a reminder to confirm their email address, and the user can't create or update pipelines until their email address is confirmed.

Minimum password length limit

Introduced in GitLab 12.6

You can change the minimum number of characters a user must have in their password using the GitLab UI.

Allow or deny sign ups using specific email domains

You can specify an inclusive or exclusive list of email domains which can be used for user sign up.

These restrictions are only applied during sign up from an external user. An administrator can add a user through the admin panel with a disallowed domain. Also, note that the users can change their email addresses to disallowed domains after sign up.

Allowlist email domains

Introduced in GitLab 7.11.0

You can restrict users only to sign up using email addresses matching the given domains list.

Denylist email domains

Introduced in GitLab 8.10.

You can block users from signing up when using an email addresses of specific domains. This can reduce the risk of malicious users creating spam accounts with disposable email addresses.

Create email domain allowlist or denylist

To create an email domain allowlist or denylist:

  1. Go to Admin Area > Settings > General and expand Sign-up restrictions.

  2. For the allowlist, you must enter the list manually. For the denylist, you can enter the list manually or upload a .txt file that contains list entries.

    Both the allowlist and denylist accept wildcards. For example, you can use *.company.com to accept every company.com subdomain, or *.io to block all domains ending in .io. Domains must be separated by a whitespace, semicolon, comma, or a new line.

    Domain Denylist

Enable or disable soft email confirmation

Soft email confirmation is under development but ready for production use. It is deployed behind a feature flag that is disabled by default. GitLab administrators with access to the GitLab Rails console can opt to disable it.

To enable it:

Feature.enable(:soft_email_confirmation)

To disable it:

Feature.disable(:soft_email_confirmation)