2020-10-26 17:08:22 -04:00
---
2021-02-03 16:09:17 -05:00
stage: Manage
2022-01-26 22:14:06 -05:00
group: Authentication and Authorization
2020-11-26 01:09:20 -05:00
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
2020-10-26 17:08:22 -04:00
---
2021-10-13 20:12:08 -04:00
# Modify global user settings **(FREE SELF)**
2019-03-14 23:19:04 -04:00
GitLab administrators can modify user settings for the entire GitLab instance.
2021-10-13 20:12:08 -04:00
## Prevent users from creating top-level groups
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
By default, new users can create top-level groups. To disable your users'
ability to create top-level groups:
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
**Omnibus GitLab installations**
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
1. Edit `/etc/gitlab/gitlab.rb` and add the following line:
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
```ruby
gitlab_rails['gitlab_default_can_create_group'] = false
```
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
1. [Reconfigure and restart GitLab ](restart_gitlab.md#omnibus-installations ).
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
**Source installations**
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
1. Edit `config/gitlab.yml` and uncomment the following line:
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
```yaml
# default_can_create_group: false # default: true
```
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
1. [Restart GitLab ](restart_gitlab.md#installations-from-source ).
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
## Prevent users from changing their usernames
2019-03-14 23:19:04 -04:00
2021-10-13 20:12:08 -04:00
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 ).