Answers.Body: <p>I am afraid to say that this is not possible via UI configuration. You will need to setup ACL via civicrm hook(<a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_aclWhereClause/" rel="nofollow noreferrer">hook_civicrm_aclWhereClause</a>) to grant access for a contact to specific group.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-26T15:22:25.167Z
Answers.Text: Thanks for your reply. I know that it is not possible. That is the reason why I prefixed it with feature request. I posted this as a feature request on Github, but was directed to here.
Answers.UserDisplayName: Webmaster COVS
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-25T17:21:12.300Z
Answers.LastActivityDate: 2019-12-25T17:21:12.300Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p><strong>Overview</strong></p>
  
  <p>I have a number of groups. Each group has one or more memberships. With ACL I can discern between the access to the different groups and their contacts. However, when access is granted, the accessor can change all memberships, not only the ones which are related to the group.</p>
  
  <p><strong>Example use-case</strong></p>
  
  <ul>
  <li>Have group Rotterdam and Amsterdam and have
  separate admins for them.</li>
  <li>Add a contact and add them to groups Rotterdam and
  Amsterdam.</li>
  <li>Add a membership.</li>
  </ul>
  
  <p>It is now unclear where the membership belongs
     to and who is allowed to change it.</p>
  
  <p><strong>Proposed behaviour</strong></p>
  
  <ul>
  <li>Click on memberships.</li>
  <li>Add membership.</li>
  <li>Be able to choose and relate the membership from a field populated with the group a contact already belongs to. If left blank (no group selected),fall back to the current behaviour, for compatibility with existing instances.</li>
  <li>Apply ACL to have group admins see and change only their own memberships, depicted by the relationship between the membership and the group.</li>
  </ul>
  
Tags: <civimember><groups><acl>
Title: Feature request: Relate memberships to Groups and have separate access
ThreadText: # Feature request: Relate memberships to Groups and have separate access
  
  (Asked by: username_0 on 2019-12-25)
  
  **Overview**
  
  I have a number of groups. Each group has one or more memberships. With ACL I can discern between the access to the different groups and their contacts. However, when access is granted, the accessor can change all memberships, not only the ones which are related to the group.
  
  **Example use-case**
  
  * Have group Rotterdam and Amsterdam and have
    separate admins for them.
  * Add a contact and add them to groups Rotterdam and
    Amsterdam.
  * Add a membership.
  
  It is now unclear where the membership belongs
  to and who is allowed to change it.
  
  **Proposed behaviour**
  
  * Click on memberships.
  * Add membership.
  * Be able to choose and relate the membership from a field populated with the group a contact already belongs to. If left blank (no group selected),fall back to the current behaviour, for compatibility with existing instances.
  * Apply ACL to have group admins see and change only their own memberships, depicted by the relationship between the membership and the group.
  
  **Tags:** civimember, groups, acl
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-25. Score: 0
  
  I am afraid to say that this is not possible via UI configuration. You will need to setup ACL via civicrm hook([hook\_civicrm\_aclWhereClause](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_aclWhereClause/)) to grant access for a contact to specific group.
  
  > **Comments:**
  > **username_0**: Thanks for your reply. I know that it is not possible. That is the reason why I prefixed it with feature request. I posted this as a feature request on Github, but was directed to here.  
  
  ---
  
  