Answers.Body: <p>As I didn't hear from anyone, I figured I'd just write the extension.</p>
  <p><a href="https://github.com/artfulrobot/uk.artfulrobot.civicrm.autogroup" rel="nofollow noreferrer">Artful Robot's AutoGroup Extension</a> is here for your delight and delectation.</p>
  <p>From the README:</p>
  <blockquote>
  <p>This extension allows you to choose a set of groups which will be added to new contacts if the logged in contact is also in that group.</p>
  <p>e.g. If Staff member Wilma is in the group 'Region: Birmingham' and Wilma adds a new contact, it can automatically add the new contact into 'Region: Birmingham'
  group.</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-01T22:11:23.750Z
Answers.Text: interesting. thx for sharing
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-01T10:16:31.347Z
Answers.LastActivityDate: 2017-12-01T10:16:31.347Z
Answers.LastEditDate: 2020-06-17T09:00:50.810Z
Answers.UserDisplayName: artfulrobot
Body: <p>I've got ACLs set up. Certain users can only have access to contacts in a particular group.</p>
  
  <p>The problem is that when this user creates a contact they have to remember to add the contact to that group, otherwise they cease having permission to view/edit that contact the moment it's created.</p>
  
  <p>Obviously this is clearly <em>their fault</em>, but realistically it's going to be a real paper cut in the system, leading to frustration and also lots of duplicate contacts as they just try again with a new contact.</p>
  
  <p>I'm thinking of writing some code that either automatically adds contacts created into an appropriate group based on the user's access groups, or some hacky javascript thing that pops up a <em>"Oh, you've not added them to a group - did you forget?"</em> confirmation message.</p>
  
  <p>But I suspect this problem's been found before and possibly dealt with a different/better way?</p>
  
Tags: <4.7><acl><user-experience>
Title: How to automatically add contacts to a group that matches the ACL?
ThreadText: # How to automatically add contacts to a group that matches the ACL?
  
  (Asked by: username_0 on 2017-11-09)
  
  I've got ACLs set up. Certain users can only have access to contacts in a particular group.
  
  The problem is that when this user creates a contact they have to remember to add the contact to that group, otherwise they cease having permission to view/edit that contact the moment it's created.
  
  Obviously this is clearly *their fault*, but realistically it's going to be a real paper cut in the system, leading to frustration and also lots of duplicate contacts as they just try again with a new contact.
  
  I'm thinking of writing some code that either automatically adds contacts created into an appropriate group based on the user's access groups, or some hacky javascript thing that pops up a *"Oh, you've not added them to a group - did you forget?"* confirmation message.
  
  But I suspect this problem's been found before and possibly dealt with a different/better way?
  
  **Tags:** 4.7, acl, user-experience
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-12-01. Score: 3 | Accepted answer
  
  As I didn't hear from anyone, I figured I'd just write the extension.
  
  [Artful Robot's AutoGroup Extension](https://github.com/username_0/uk.username_0.civicrm.autogroup) is here for your delight and delectation.
  
  From the README:
  
  > This extension allows you to choose a set of groups which will be added to new contacts if the logged in contact is also in that group.
  >
  > e.g. If Staff member Wilma is in the group 'Region: Birmingham' and Wilma adds a new contact, it can automatically add the new contact into 'Region: Birmingham'
  > group.
  
  > **Comments:**
  > **username_1**: interesting. thx for sharing  
  
  ---
  
  