Reputation: 1736
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
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