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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Synchronize Users to Contacts not working Drupal 7
Pages: [1]

Author Topic: Synchronize Users to Contacts not working Drupal 7  (Read 801 times)

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Synchronize Users to Contacts not working Drupal 7
November 27, 2012, 01:39:14 pm
So I'm trying to retroactively create Drupal users for every contact within Civi so they can manage their own details. I have found detailed instructions how to do this. The snag is, even though I can successfully import/create Drupal accounts for each user that I exported, I can't seem to get Drupal and Civi to match them up, even though the primary email addresses are identical. I tried the Synchronize Users to Contacts function in Civi, and it doesn't seem to link the accounts (or do anything at all, for that matter).

The reason I know this is that, for comparison, I changed a Civi membership form to also create a Drupal user at the time of the membership signup, and created a member/user that way to see how the two accounts would link, and on that account's Drupal profile, you can see all details of both the Drupal user and the Civi membership - just as you would expect.

However, when I look at the Drupal account profile for a newly imported Drupal user I was attempting to synch up with an existing Civi membership, it does not have the information about the membership that you would expect it to pull from the Civi contact - it only offers them a blank form in that particular tab with no member information filled in. The two records obviously are not connected.

And I also know it's not a result of the import process, because to test for that scenario, I created a Drupal user from the back end, then tried to synch it, also with no success.

I've read all documentation I could find and googled the question to no successful avail. What's missing from this equation? Thanks in advance.  ???

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Synchronize Users to Contacts not working Drupal 7
November 27, 2012, 04:17:05 pm
Not sure what's happening on your site - you should at least get a status message after running Synch Users to Contacts. Your profile on this forum says you're running a version of CiviCRM that's quite old. I'd recommend upgrading to current stable version (4.2.6) and see if that helps.
Protect your investment in CiviCRM by  becoming a Member!

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Synchronize Users to Contacts not working Drupal 7
November 28, 2012, 04:54:34 am
Well, it does give a status message. It just doesn't make sense - it says something to the effect of 4 contacts found, no new records created - which I would think would mean since it didn't have to create *new* records, the records would be synched up (I only have about 4 Drupal users in there now for test purposes). As to upgrading, my boss doesn't want to because he's happier with "the bugs he knows" rather than some new bugs that might turn up as a result of upgrading. I can suggest it to him, but he's already vetoed that idea once. :(

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Synchronize Users to Contacts not working Drupal 7
November 28, 2012, 05:02:44 am
Here's the exact status message it gives:
Synchronize Users to Contacts completed. Checked 4 user records. Found 4 matching contact records. Created 0 new contact records.

Now that sounds like the records should be synched. Yet they aren't.

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Synchronize Users to Contacts not working Drupal 7
November 28, 2012, 05:18:27 am
Now - even stranger - when I look at the apparently non-synched user from the back end, it doesn't have any of the Civi information showing, however it does have a link that says "View Contact Record" - and that link does take me to the Civi record. WTH?

I really wish that last year we had allowed members to be Drupal users in the first place - I was told no because my boss was convinced that you shouldn't have to - it would make no sense to have to because he said Civi used to be a standalone platform, so he was not open to the idea - I think he was mostly concerned with potential security issues. I was finally able to find enough documentation this year to explain that they do have to be Drupal users in order for Civi to be "aware" of them as logged in users for matters such as membership renewals, editing their contact information, etc. So now I'm trying to go back and fix this.

So I guess, wish me luck.

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Synchronize Users to Contacts not working Drupal 7
November 28, 2012, 06:23:35 am
Sorry to keep posting, but to clarify - the ability I mentioned above to click through to the Civi record is limited to being logged in as administrator - it doesn't give the individual user this ability, so it's kind of a moot point.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Synchronize Users to Contacts not working Drupal 7
November 28, 2012, 11:03:48 am
If 'View Contact Record' link is there, than the Drupal user IS linked to the Civi contact record. That link will only show for users who have 'access CiviCRM' and 'view all contacts' (or equivalent ACLs).

Not sure what CiviCRM data you're expecting to see on the /user pages? CiviCRM data about the contact will only show on /user Drupal page if you have a CiviCRM Profile configured to be Used For "View/Edit Drupal User Account" - and then only the fields in that profile will be displayed.
Protect your investment in CiviCRM by  becoming a Member!

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Synchronize Users to Contacts not working Drupal 7
November 28, 2012, 11:12:44 am
Well, that's what I'm saying - I'll send 2 screen shots - the one that I created the "correct" civi way shows the information that belongs on those fields (rightcapture.jpg), and the one I created by trying to synch had empty values showing in those fields (wrongcapture.jpg) on the profile page instead of the values that were in the corresponding civi contact. These are both shown as the logged in user would see them, and both users have the same sets of permissions. Also, I just upgraded to the latest version of Civi and it's still doing the same thing.

pandorawombat

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.10
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Synchronize Users to Contacts not working Drupal 7
November 28, 2012, 11:31:46 am
I take it back - I just started over with new users in the latest install, and now it's working as expected. (It just didn't work when I was trying to synch contacts that were in there before the upgrade). :) Thanks everyone!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Synchronize Users to Contacts not working Drupal 7

This forum was archived on 2017-11-26.