CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Sync Users to Contacts Scheduled Job?
Pages: [1]

Author Topic: Sync Users to Contacts Scheduled Job?  (Read 618 times)

kenlyle

  • I post occasionally
  • **
  • Posts: 116
  • Karma: 7
Sync Users to Contacts Scheduled Job?
September 06, 2012, 10:44:30 am
Is there a Sync Users to Contacts Scheduled Job?  Where would I start in building one?

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Sync Users to Contacts Scheduled Job?
September 06, 2012, 10:59:04 am
There isn't one currently. What's the use case for this? I had thought that "Synch Users to Contacts" was generally something that would be run once on a site where there were existing user records and THEN CiviCRM was installed and enabled. Once you have Civi running in your CMS - then creation of new user records automatically triggers either insert of new contact record or linkage of that user to an existing contact (which is what the "Synch" job does).  What am i missing here?
Protect your investment in CiviCRM by  becoming a Member!

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Sync Users to Contacts Scheduled Job?
March 14, 2013, 03:03:45 pm
Sorry for reawakening this thread but I am looking to do the same thing and the use case is as follows:

You have an organization running a Drupal/CiviCRM site (in the case Civi 4.2.x and Drupal 7.x) and when the CiviCRM contact record primary email address is changed from within Civi it does not change the user record Drupal until you run Synch Users to Contacts.

Note (additional info): I'm using CiviCRM 4.2.4 on the site in question and will be updating to 4.2.8 soon. The issue of CiviCRM not updating the email address in the Drupal User Profile is limited to editing the email 'in place' from the individual's Contact Record. If you perform a full edit of their record and save it, the email address is updated across to Drupal.   
« Last Edit: March 14, 2013, 04:48:37 pm by awasson »
My CiviCRM Extension Workshop: https://github.com/awasson

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Sync Users to Contacts Scheduled Job?
March 14, 2013, 05:14:06 pm

andrew:

the note was useful information :) can u please file an issue for this and we'll fix for 4.3. If you can provide a patch that would be even better :)

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Sync Users to Contacts Scheduled Job?
March 14, 2013, 06:31:31 pm
Hey Lobo,

You bet.... I'll update to Civi 4.2.8 first and see if the issue is still there. If not, I'll definitely log the issue. If I can figure out where the issue lies, I'll submit a patch too.

BTW: If there's a way I can do User => Member synch as a Scheduled Job, I'm still interested.

Andrew
My CiviCRM Extension Workshop: https://github.com/awasson

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Sync Users to Contacts Scheduled Job?

This forum was archived on 2017-11-26.