mcane
mcane

Reputation: 1736

Gitlab: add all users to all groups without changing permisions of existing users

In GitLab you can add all users to all groups with a simple command:

 gitlab-rake gitlab:import:all_users_to_all_groups

After execution the GitLab Users became developers and GitLab administrators become owners of each group. If there were existing users in the group with different permissions, the permissions are discarded with this command.

The question is if there is a command to add all users to all groups where:

Upvotes: 2

Views: 775

Answers (1)

VonC
VonC

Reputation: 1329072

The question is if there is a command to add all users to all groups where...

All the user management functions are in lib/tasks/gitlab/bulk_add_permission.rake, including all_users_to_all_groups

You could modify that file and implement a function that would not just call group.add_users(user_ids, GroupMember::DEVELOPER) but check its rights first.

Upvotes: 2

Related Questions