2021-01-29 00:20:46 +05:30
---
2021-03-11 19:13:27 +05:30
stage: Manage
2022-03-02 08:16:31 +05:30
group: Authentication & Authorization
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2021-11-18 22:05:49 +05:30
# Modify global user settings **(FREE SELF)**
2019-07-07 11:18:12 +05:30
GitLab administrators can modify user settings for the entire GitLab instance.
2021-11-18 22:05:49 +05:30
## Prevent users from creating top-level groups
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
By default, new users can create top-level groups. To disable your users'
ability to create top-level groups:
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
**Omnibus GitLab installations**
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
1. Edit `/etc/gitlab/gitlab.rb` and add the following line:
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
```ruby
gitlab_rails['gitlab_default_can_create_group'] = false
```
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
1. [Reconfigure and restart GitLab ](restart_gitlab.md#omnibus-installations ).
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
**Source installations**
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
1. Edit `config/gitlab.yml` and uncomment the following line:
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
```yaml
# default_can_create_group: false # default: true
```
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
1. [Restart GitLab ](restart_gitlab.md#installations-from-source ).
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
## Prevent users from changing their usernames
2019-07-07 11:18:12 +05:30
2021-11-18 22:05:49 +05:30
By default, new users can change their usernames. To disable your users'
ability to change their usernames:
**Omnibus GitLab installations**
1. Edit `/etc/gitlab/gitlab.rb` and add the following line:
```ruby
gitlab_rails['gitlab_username_changing_enabled'] = false
```
1. [Reconfigure and restart GitLab ](restart_gitlab.md#omnibus-installations ).
**Source installations**
1. Edit `config/gitlab.yml` and uncomment the following line:
```yaml
# username_changing_enabled: false # default: true - User can change their username/namespace
```
1. [Restart GitLab ](restart_gitlab.md#installations-from-source ).