Answers.Body: <p>I'm not familiar with Google Group Sync, but if the message is not coming from CiviCRM, I'm not seeing how you would include an individualized CiviCRM checksum (generated by a CiviCRM token) for each contact. As you say a generic link to allow anyone to unsubscribe is needed. </p>
  
  <p>An option would be to include a link to a profile that allows people to manage their groups. Since this is a profile that works for anyone, no token is required. But the user would need to log in.</p>
  
  <p>If contacts don't have user accounts or you don't want them to have to login, you could write an extension for the user to request a new link - similar to Pete's idea here: <a href="https://civicrm.stackexchange.com/questions/12138/can-an-expired-checksum-provide-any-warning-to-the-user-when-they-get-to-the-sit">Can an expired checksum provide any warning to the user when they get to the site?</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-05T13:07:58.753Z
Answers.Text: Thank you for the suggestion. I will take some time to look st this later today. I considered the profile, but couldn't find the group unsubscibe fields when creating the profile. I was hoping I could make an API call to CiviCRM with the checksum for the group, and allow the user to enter their email address, or login to complete the removal.
Answers.UserDisplayName: Paul Dufresne
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-05T15:41:19.823Z
Answers.Text: Add the field Contacts > Groups to a profile, and all Mailing Lists groups that are available publicly will show up. You can then send the profile edit link to the contacts that want to change their subscription settings.
Answers.UserDisplayName: Sanjay Jain
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-04T12:57:30.597Z
Answers.LastActivityDate: 2016-06-04T18:02:38.487Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Sanjay Jain
Answers.Body: <p>I know I asked this question quite some time ago, but I thought I'd share the solution we landed on.</p>
  
  <p>We found and tested two solutions that worked well. The first was using Tags:</p>
  
  <ul>
  <li>Allow users to manage their tags</li>
  <li>Create tags for the groups members can opt-in/out of</li>
  <li>Create smart groups based on the membership status and tags</li>
  <li>Sync the Google Group to the smart group for the associated tag</li>
  </ul>
  
  <p>The second approach was very similar, but instead of using tags, we used a set of custom fields as checkboxes for each of the groups. We settled on this approach, because it allowed us more control over what was shown to the user and freed up tags for other uses.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-24T04:46:07.153Z
Answers.LastActivityDate: 2020-01-24T04:46:07.153Z
Answers.UserDisplayName: Paul Dufresne
Body: <p>We're using Google Groups Sync to synchronize our members in CiviCRM with groups in Google Groups. However, if the user unsubscribes from the list using the Google Groups link, Google Groups Sync will automatically re-add them during the next sync cycle.</p>
  
  <p>The solution, I believe, is to include the unsubscribe link CiviCRM would generate if the e-mail originated from CiviMail, but I can't work out how to generate that link.</p>
  
  <p>Is it possible to generate an unsubscribe link manually, or generic enough to include in the footer of Google Groups messages?</p>
  
Tags: <civimail><unsubscribe>
Title: How to generate group unsubscribe link
ThreadText: # How to generate group unsubscribe link
  
  (Asked by: username_0 on 2016-05-28)
  
  We're using Google Groups Sync to synchronize our members in CiviCRM with groups in Google Groups. However, if the user unsubscribes from the list using the Google Groups link, Google Groups Sync will automatically re-add them during the next sync cycle.
  
  The solution, I believe, is to include the unsubscribe link CiviCRM would generate if the e-mail originated from CiviMail, but I can't work out how to generate that link.
  
  Is it possible to generate an unsubscribe link manually, or generic enough to include in the footer of Google Groups messages?
  
  **Tags:** civimail, unsubscribe
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-01-24. Score: 3 | Accepted answer
  
  I know I asked this question quite some time ago, but I thought I'd share the solution we landed on.
  
  We found and tested two solutions that worked well. The first was using Tags:
  
  * Allow users to manage their tags
  * Create tags for the groups members can opt-in/out of
  * Create smart groups based on the membership status and tags
  * Sync the Google Group to the smart group for the associated tag
  
  The second approach was very similar, but instead of using tags, we used a set of custom fields as checkboxes for each of the groups. We settled on this approach, because it allowed us more control over what was shown to the user and freed up tags for other uses.
  
  
  ---
  
  ### Answer by username_1 on 2016-06-04. Score: 1
  
  I'm not familiar with Google Group Sync, but if the message is not coming from CiviCRM, I'm not seeing how you would include an individualized CiviCRM checksum (generated by a CiviCRM token) for each contact. As you say a generic link to allow anyone to unsubscribe is needed.
  
  An option would be to include a link to a profile that allows people to manage their groups. Since this is a profile that works for anyone, no token is required. But the user would need to log in.
  
  If contacts don't have user accounts or you don't want them to have to login, you could write an extension for the user to request a new link - similar to Pete's idea here: [Can an expired checksum provide any warning to the user when they get to the site?](https://civicrm.stackexchange.com/questions/12138/can-an-expired-checksum-provide-any-warning-to-the-user-when-they-get-to-the-sit)
  
  > **Comments:**
  > **username_0**: Thank you for the suggestion. I will take some time to look st this later today. I considered the profile, but couldn't find the group unsubscibe fields when creating the profile. I was hoping I could make an API call to CiviCRM with the checksum for the group, and allow the user to enter their email address, or login to complete the removal.  
  > **username_1**: Add the field Contacts > Groups to a profile, and all Mailing Lists groups that are available publicly will show up. You can then send the profile edit link to the contacts that want to change their subscription settings.  
  
  ---
  
  