title: Gitlab: Is it possible to auto assign new users to project groups
body: <p>We have a community install of Gitlab up and running using an omniauth strategy against our own private oAuth2 server. </p>
  
  <p><strong>Question</strong>: Is there was a way to auto assign all users to all Gitlab project groups automatically. </p>
  
  <p>We're aware of this Rake command, which works via a cronjob or CLI nicely:</p>
  
  <pre><code>sudo -u git -H bundle exec rake gitlab:import:all_users_to_all_groups RAILS_ENV=production
  </code></pre>
  
  <p>We've also worked out a set of API calls on our oAuth 2 server, such that each time a user logs into Gitlab via our server, their account is checked against all available groups and added to the groups. </p>
  
  <p>This last method works well, but we want to make sure we are not entirely re-inventing the wheel here. As well, we would imagine if we had many groups, checking on each login would slow things down considerably. </p>