We are currently running this psql query via a cron job every 5 minutes. A 
built in addition to handle this would be very beneficial:

insert into members (access_level, source_id, source_type, user_id, 
notification_level, type)  (select 30,37,'Namespace', users.id, 3, 
'GroupMember' from users left join members on members.user_id=users.id 
where users.state='active' and members.user_id is NULL and 
users.provider='<CUSTOM_PROVIDER>');

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/9368e98c-aa7d-49df-a18e-cfbf1e1ae8e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to