Answers.Body: <p>Found a way to list the group linked with contact based on ACL </p>
  
  <p>$group = CRM_ACL_API::group(2,$request_contactID);</p>
  
  <p>The above API group function returns the group ID for the requested contact ID</p>
  
  <p>Thanks</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-08T17:21:00.920Z
Answers.LastActivityDate: 2018-07-08T17:21:00.920Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>How do I list group linked for a specific user in CiviCRM</p>
  
  <p>Example: I have three user group in Civi - Admin, user and staff</p>
  
  <p>I have linked only one group (staff contact) for staff user with ACL </p>
  
  <p>Now If I login has staff user he can only see (staff contact) group</p>
  
  <p>I need SQL or a civiCRM function which can return me the group based on Contact_ID</p>
  
  <p><a href="https://i.sstatic.net/UfhDw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UfhDw.png" alt="enter image description here"></a>
  Thanks in Advance </p>
  
Tags: <groups>
Title: List all Group linked in ACL for specific User
ThreadText: # List all Group linked in ACL for specific User
  
  (Asked by: username_0 on 2018-07-08)
  
  How do I list group linked for a specific user in CiviCRM
  
  Example: I have three user group in Civi - Admin, user and staff
  
  I have linked only one group (staff contact) for staff user with ACL
  
  Now If I login has staff user he can only see (staff contact) group
  
  I need SQL or a civiCRM function which can return me the group based on Contact\_ID
  
  [![enter image description here](https://i.sstatic.net/UfhDw.png)](https://i.sstatic.net/UfhDw.png)
  Thanks in Advance
  
  **Tags:** groups
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-07-08. Score: 2
  
  Found a way to list the group linked with contact based on ACL
  
  $group = CRM\_ACL\_API::group(2,$request\_contactID);
  
  The above API group function returns the group ID for the requested contact ID
  
  Thanks
  
  
  ---
  
  