Answers.Body: <p>In general the way to sync drupal entities with CiviCRM fields is to enable the <a href="https://www.drupal.org/project/civicrm_entity">civicrm_entity</a> module.</p>
  
  <p>Documentation can be found <a href="https://www.drupal.org/node/2506765">here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-09T23:12:11.537Z
Answers.LastActivityDate: 2016-07-09T23:12:11.537Z
Answers.UserDisplayName: Coleman
Body: <p>Essentially, we are having an integration problem where one component we are using is expecting to find or use default user entity fields, but these fields are not mapped into CiviCRM's user Contact card.</p>
  
  <p>To be precise, we are using Drupal's LDAP module to exchange data with legacy systems and provide SSO auth. The LDAP module allows us to specify which Drupal user entity fields are mapped into the LDAP record using Drupal tokens, for example [field.field_lname], [field.field_fname], etc. However, those entity fields are not mapped into CiviCRM. As a result, we can't query their data using Civi, or expose it to users to edit using Civi's profile forms. </p>
  
  <p>How can we manage mappings between CiviCRM's Contact record fields and Drupal's entity API?</p>
  
Tags: <drupal><contacts><civicrm-entity><field-mapping><sso>
Title: Mapping of CiviCRM's Contact card fields to Drupal user entity's
ThreadText: # Mapping of CiviCRM's Contact card fields to Drupal user entity's
  
  (Asked by: username_0 on 2016-07-09)
  
  Essentially, we are having an integration problem where one component we are using is expecting to find or use default user entity fields, but these fields are not mapped into CiviCRM's user Contact card.
  
  To be precise, we are using Drupal's LDAP module to exchange data with legacy systems and provide SSO auth. The LDAP module allows us to specify which Drupal user entity fields are mapped into the LDAP record using Drupal tokens, for example [field.field\_lname], [field.field\_fname], etc. However, those entity fields are not mapped into CiviCRM. As a result, we can't query their data using Civi, or expose it to users to edit using Civi's profile forms.
  
  How can we manage mappings between CiviCRM's Contact record fields and Drupal's entity API?
  
  **Tags:** drupal, contacts, civicrm-entity, field-mapping, sso
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-09. Score: 5 | Accepted answer
  
  In general the way to sync drupal entities with CiviCRM fields is to enable the [civicrm\_entity](https://www.drupal.org/project/civicrm_entity) module.
  
  Documentation can be found [here](https://www.drupal.org/node/2506765).
  
  
  ---
  
  