BigW Consortium Gitlab

user_management.md 1.09 KB
Newer Older
1 2
# User management

3
## Add user as a developer to all projects
4

5
```bash
6 7 8
# omnibus-gitlab
sudo gitlab-rake gitlab:import:user_to_projects[username@domain.tld]

9
# installation from source
exromany committed
10
bundle exec rake gitlab:import:user_to_projects[username@domain.tld] RAILS_ENV=production
11 12
```

13
## Add all users to all projects
14 15 16

Notes:

17
- admin users are added as masters
18

19
```bash
20 21 22
# omnibus-gitlab
sudo gitlab-rake gitlab:import:all_users_to_all_projects

23
# installation from source
exromany committed
24
bundle exec rake gitlab:import:all_users_to_all_projects RAILS_ENV=production
25
```
26

27
## Add user as a developer to all groups
28

29
```bash
30 31 32
# omnibus-gitlab
sudo gitlab-rake gitlab:import:user_to_groups[username@domain.tld]

33
# installation from source
exromany committed
34
bundle exec rake gitlab:import:user_to_groups[username@domain.tld] RAILS_ENV=production
35 36
```

37
## Add all users to all groups
38 39 40

Notes:

41
- admin users are added as owners so they can add additional users to the group
42

43
```bash
44 45 46
# omnibus-gitlab
sudo gitlab-rake gitlab:import:all_users_to_all_groups

47
# installation from source
exromany committed
48
bundle exec rake gitlab:import:all_users_to_all_groups RAILS_ENV=production
49
```