Answers.Body: <p>Here is what we usually do :</p>
  
  <ul>
  <li><p>either let people change their information by logging in the system, either after sending an email with a checksum link to let them update their own information. You can use a webform but in that case, you don't have to worry about the matching rule (i.e. you match with the user logged in or the checksum)</p></li>
  <li><p>for anonymous form, i prefer to use Email + First Name as a matching rule as it is quite unlikely in most case that people with the same email will have the same first name.</p></li>
  <li><p>the synchronisation between Drupal user email and CiviCRM contact email is not automatic and you will have to set some process to synchronize the 2. You might want to bloc edition of Drupal email and add a Drupal Rule to push master CiviCRM email into drupal account. I usually have my own custom code for such a thing.</p></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-16T13:41:37.143Z
Answers.LastActivityDate: 2016-09-16T13:41:37.143Z
Answers.UserDisplayName: samuelsov
Body: <p>I use Webform Integration to access/update contacts informations.</p>
  
  <p>Is it a good practice to use a Webform to modify a contact email address ?</p>
  
  <p>What matching rule should I use ? What if an other Contact already has the new mail address ?</p>
  
  <p>Will the modification be updated for the pertaining Drupal User ?
  What if there is no pertaining Drupal User ?</p>
  
Tags: <webform-civicrm><core>
Title: What is the best practice to change Email Address
ThreadText: # What is the best practice to change Email Address
  
  (Asked by: username_0 on 2016-09-16)
  
  I use Webform Integration to access/update contacts informations.
  
  Is it a good practice to use a Webform to modify a contact email address ?
  
  What matching rule should I use ? What if an other Contact already has the new mail address ?
  
  Will the modification be updated for the pertaining Drupal User ?
  What if there is no pertaining Drupal User ?
  
  **Tags:** webform-civicrm, core
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-16. Score: 4
  
  Here is what we usually do :
  
  * either let people change their information by logging in the system, either after sending an email with a checksum link to let them update their own information. You can use a webform but in that case, you don't have to worry about the matching rule (i.e. you match with the user logged in or the checksum)
  * for anonymous form, i prefer to use Email + First Name as a matching rule as it is quite unlikely in most case that people with the same email will have the same first name.
  * the synchronisation between Drupal user email and CiviCRM contact email is not automatic and you will have to set some process to synchronize the 2. You might want to bloc edition of Drupal email and add a Drupal Rule to push master CiviCRM email into drupal account. I usually have my own custom code for such a thing.
  
  
  ---
  
  