At the moment only the account name is synced to the user and it's put into the given name field.

As far as I can tell no other issue is tracking this behavior since #2704987: [META] Finish incomplete match field handlers and related are concerned with matching of contacts between each other. Have there already been plans on how to define that mapping of simple fields between users and contacts?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grahl created an issue. See original summary.

grahl’s picture

Attached is a very rudimentary patch to add the primary email field to the synchronization.

I'd be happy to work on a more general patch if I'd know that I'm on the right track in terms of the overall approach.

RoSk0’s picture

Hi @grahl,

In general I would prefer to avoid data duplication or at least make it configurable so users can decide copy or not, but in general you are on a right track.

About the meta issue you mentioned: its probably poor naming that confusing but there is a huge difference between "CRM Core User Synchronization" module which is a means of relate user to a contact and "CRM Core Match" module from the meta above which provide means to find duplicating contact records based on different matchers.

grahl’s picture

Assigned: Unassigned » grahl
Status: Active » Needs work
grahl’s picture

Status: Needs work » Needs review
FileSize
8.77 KB
8.31 KB

While not perfect yet the updated patch adds the common functionality of checking for a matching email first, when enabled, and makes syncing usable.

grahl’s picture

Assigned: grahl » Unassigned

The last submitted patch, 5: primary-email-mapping-sync-3043141-5.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

grahl’s picture

FileSize
8.71 KB

Adds a missing schema declaration

Status: Needs review » Needs work

The last submitted patch, 8: primary-email-mapping-sync-3043141-6.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

grahl’s picture

FileSize
9.4 KB
grahl’s picture

Status: Needs work » Needs review
grahl’s picture

Version: 8.x-1.x-dev » 8.x-3.x-dev

  • RoSk0 committed 53eb318 on 8.x-3.x authored by grahl
    Issue #3043141 by grahl: User sync: Field mappings
    
RoSk0’s picture

Status: Needs review » Fixed

Thanks Hendrik.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.