How to allow users to register with gitlab, but restrict their email to a specific domain?

I can enable the user to register by editing config/gitlab.yaml

 ## Users management signup_enabled: true # default: false 

I want to limit the user's email to mycompany.com domain during registration so that only people in my company can create a gitlab account. eg:

 tom@mycompany.com # ok to sign up jerry@mycompany.com # ok to sign up abc@example.com # disallow to sign up 

how to configure it in gitlab?

+6
source share
2 answers

2013: This was recently requested ( issue 4413), but not yet implemented .

Implemented in 2016 ( Merge Request 598 , GitLab 7.11, May 2015) in admin area:

https://gitlab.com/gitlab-org/gitlab-ce/uploads/b312046aae03971f37f4247382971fc6/image.png


Original answer (2013):

This will be similar to setting Atlassian Confluence:

Confluance setting

Therefore, requests for traction are welcome.

[edit]
The function request has been moved here .

+7
source

This has been implemented, you can find the white / black list in admin in the "Settings" section.

+1
source

Source: https://habr.com/ru/post/948455/


All Articles