Answers.Body: <p>To clarify, the following activity on MailChimp is communicated immediately (within several seconds) via WebHook (this does not happen during the push sync):</p>
  
  <ul>
  <li>Any users that unsubscribe themselves in MailChimp will have the Do not email flag set in their CiviCRM Communication Preferences</li>
  <li>If a contact is removed from a group in MailChimp, then the contact is also removed from the corresponding group in CiviCRM</li>
  <li>A new contact who subscribes directly via MailChimp will be added to CiviCRM as a contact within the corresponding mailing list group(s) that they subscribed to</li>
  <li>Changes to contact names in MailChimp will be updated in the corresponding contact record in CiviCRM</li>
  </ul>
  
  <p>If you have completed webhook the steps listed in the documentation, make sure you resubscribe yourself directly on MailChimp first, then:</p>
  
  <ol>
  <li>Verify whether the "<strong>Mailchimp: Allow Webhook Posts</strong>" permission has been toggled for the Anonymous User role:</li>
  </ol>
  
  <blockquote>
    <ol>
    <li>Navigate to Administer > Users and Permissions > Permissions (Access Control)</li>
    <li>Click on the "[CMS Name] Access Control" hyperlink (e.g. "Drupal Access Control")</li>
    <li>Use CTRL+F to find "Webhook" > toggle the permission for the Anonymous user role if it is not toggled</li>
    <li>Click the Save button</li>
    </ol>
  </blockquote>
  
  <ol>
  <li><strong>Confirm MailChimp Group Settings</strong>:
  
  <blockquote>
    <ol>
    <li>If using the Membership Sync, toggle the option to "<strong>Ensure list's webhook settings are correct at MailChimp when saved</strong>" <a href="https://i.sstatic.net/acozy.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/acozy.jpg" alt="enter image description here"></a></li>
    <li>If using the Interest Sync, toggle the option of "<strong>Subscribers are able to update this grouping using MailChimp</strong>" <a href="https://i.sstatic.net/So7V4.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/So7V4.jpg" alt="enter image description here"></a></li>
    </ol>
  </blockquote></li>
  </ol>
  
  <p>If you made any changes to the above settings, test again by removing yourself from a group and/or unsubscribe yourself directly from MailChimp, then navigate to your contact record in CiviCRM (or refresh after a couple of seconds if you are already there):</p>
  
  <ol>
  <li>If you removed yourself from a group, then click on your Groups tab to see that you were removed by API from the corresponding group in Civi</li>
  <li>If you unsubscribed yourself entirely, then the DO NOT EMAIL flag should be toggled on your contact record</li>
  </ol>
  
  <p>Hope this helps!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-31T18:26:54.680Z
Answers.Text: Thanks for the thorough response!  I double checked all these settings (Mailchimp side, permissions, and group settings), and the user after unsubscribing, and 'Do Not Mail' is not set nor is it removed from the Smart Group.
  
  I also looked at the webserver access log, and right as I make the change in MailChimp I see a POST coming into the /mailchimp/webhook URL with a response code of 200.  Drupal logs seem to indicate things went well, and the JSON passed contains the correct email address, but I still don't see 'Do not email' set under the user's communication preferences.
Answers.UserDisplayName: roberttdev
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-31T18:27:36.917Z
Answers.Text: If it helps, we are on Civi 4.4.19.
Answers.UserDisplayName: roberttdev
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-31T20:53:46.893Z
Answers.Text: Hmmmm.... I think the more technical people of this forum will need to respond on this - since images can't be included in responses (at least I couldn't figure out how to include them), I think you would be better off posting a new question and including a link to this one so that they know what has already been covered - sorry I couldn't be of more help on this!
Answers.UserDisplayName: Tamar Meir - Cividesk
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-29T18:53:40.140Z
Answers.LastActivityDate: 2018-10-29T18:53:40.140Z
Answers.UserDisplayName: Tamar Meir - Cividesk
Body: <p>I have the "Mailchimp &amp; CiviCRM" integration (v2.0) installed, and have created a Smart Group containing current mailable members which I've linked with a test MailChimp group.  I've activated the Push job, but not the Pull job, as from what I understand I want CiviCRM to be the source of truth and push to MailChimp.  The push seems to work, but the description of the module here: <a href="https://vedaconsulting.co.uk/civicrm-mailchimp" rel="nofollow noreferrer">https://vedaconsulting.co.uk/civicrm-mailchimp</a> seems to indicate that it will also pull back to CiviCRM when a user or admin unsubscribes.</p>
  
  <p>This has not been the case in my testing -- when I unsubscribe my own user through the admin screen on MC, the Smart Group never gets updated.  On the next scheduled push, the user shows up in MC as Subscribed again.  I've double checked the Webhook settings, and they are set as shown in the above link.  What am I doing wrong -- am I misunderstanding the push/pull, and I need to activate both jobs?  Will this work correctly, so that individual unsubscribes are pulled from MC immediately, but everything else comes from Civi?</p>
  
Tags: <mailchimp>
Title: Mailchimp Integration pushing but not pulling
ThreadText: # Mailchimp Integration pushing but not pulling
  
  (Asked by: username_0 on 2018-10-29)
  
  I have the "Mailchimp & CiviCRM" integration (v2.0) installed, and have created a Smart Group containing current mailable members which I've linked with a test MailChimp group. I've activated the Push job, but not the Pull job, as from what I understand I want CiviCRM to be the source of truth and push to MailChimp. The push seems to work, but the description of the module here: <https://vedaconsulting.co.uk/civicrm-mailchimp> seems to indicate that it will also pull back to CiviCRM when a user or admin unsubscribes.
  
  This has not been the case in my testing -- when I unsubscribe my own user through the admin screen on MC, the Smart Group never gets updated. On the next scheduled push, the user shows up in MC as Subscribed again. I've double checked the Webhook settings, and they are set as shown in the above link. What am I doing wrong -- am I misunderstanding the push/pull, and I need to activate both jobs? Will this work correctly, so that individual unsubscribes are pulled from MC immediately, but everything else comes from Civi?
  
  **Tags:** mailchimp
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-10-29. Score: 2
  
  To clarify, the following activity on MailChimp is communicated immediately (within several seconds) via WebHook (this does not happen during the push sync):
  
  * Any users that unsubscribe themselves in MailChimp will have the Do not email flag set in their CiviCRM Communication Preferences
  * If a contact is removed from a group in MailChimp, then the contact is also removed from the corresponding group in CiviCRM
  * A new contact who subscribes directly via MailChimp will be added to CiviCRM as a contact within the corresponding mailing list group(s) that they subscribed to
  * Changes to contact names in MailChimp will be updated in the corresponding contact record in CiviCRM
  
  If you have completed webhook the steps listed in the documentation, make sure you resubscribe yourself directly on MailChimp first, then:
  
  1. Verify whether the "**Mailchimp: Allow Webhook Posts**" permission has been toggled for the Anonymous User role:
  
  > 1. Navigate to Administer > Users and Permissions > Permissions (Access Control)
  > 2. Click on the "[CMS Name] Access Control" hyperlink (e.g. "Drupal Access Control")
  > 3. Use CTRL+F to find "Webhook" > toggle the permission for the Anonymous user role if it is not toggled
  > 4. Click the Save button
  
  1. **Confirm MailChimp Group Settings**:
     > 1. If using the Membership Sync, toggle the option to "**Ensure list's webhook settings are correct at MailChimp when saved**" [![enter image description here](https://i.sstatic.net/acozy.jpg)](https://i.sstatic.net/acozy.jpg)
     > 2. If using the Interest Sync, toggle the option of "**Subscribers are able to update this grouping using MailChimp**" [![enter image description here](https://i.sstatic.net/So7V4.jpg)](https://i.sstatic.net/So7V4.jpg)
  
  If you made any changes to the above settings, test again by removing yourself from a group and/or unsubscribe yourself directly from MailChimp, then navigate to your contact record in CiviCRM (or refresh after a couple of seconds if you are already there):
  
  1. If you removed yourself from a group, then click on your Groups tab to see that you were removed by API from the corresponding group in Civi
  2. If you unsubscribed yourself entirely, then the DO NOT EMAIL flag should be toggled on your contact record
  
  Hope this helps!
  
  > **Comments:**
  > **username_0**: Thanks for the thorough response!  I double checked all these settings (Mailchimp side, permissions, and group settings), and the user after unsubscribing, and 'Do Not Mail' is not set nor is it removed from the Smart Group.  I also looked at the webserver access log, and right as I make the change in MailChimp I see a POST coming into the /mailchimp/webhook URL with a response code of 200.  Drupal logs seem to indicate things went well, and the JSON passed contains the correct email address, but I still don't see 'Do not email' set under the user's communication preferences.  
  > **username_0**: If it helps, we are on Civi 4.4.19.  
  > **username_1**: Hmmmm.... I think the more technical people of this forum will need to respond on this - since images can't be included in responses (at least I couldn't figure out how to include them), I think you would be better off posting a new question and including a link to this one so that they know what has already been covered - sorry I couldn't be of more help on this!  
  
  ---
  
  