Answers.Body: <p>Removing this commit: <a href="https://github.com/civicrm/civicrm-core/pull/19372/commits/7ffbc14effcf98ade1381002375947b36af712b6" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/19372/commits/7ffbc14effcf98ade1381002375947b36af712b6</a> got the groups to show again.</p>
  <p>For me, listing all groups to all users is fine and preferable over group search missing entirely. This is what WP users were used to for some time. My understanding is that this was Drupal based functionality. Users can only see the contacts they are permissioned to in whatever group it is as well.</p>
  <p>Using multisite on 5.35.2</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-23T14:49:26.070Z
Answers.LastActivityDate: 2021-09-23T15:39:37.630Z
Answers.LastEditDate: 2021-09-23T15:39:37.630Z
Answers.UserDisplayName: Andy Burns
Answers.Body: <p>If you open your web browser's Developer Tools (press F12) and go to the Network tab, you should be able to get more information.  When you click the &quot;Groups&quot; drop-down, look for the new request at the bottom of the Network tab.  It will almost certainly have a purple &quot;500&quot; or &quot;403&quot; instead of the green &quot;200&quot; next to it.  Click that line, check the &quot;Response&quot; sub-tab, and you'll have a detailed error message.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-10T14:56:51.877Z
Answers.Text: Unfortunately it is not showing the request.
Answers.UserDisplayName: Andy Burns
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-10T16:28:09.483Z
Answers.Text: That means that either a) you're filtering out XHR requests (check the subtabs of the Network tab) or b) you have a JavaScript error on the page - which would actually explain this problem pretty well.  Check the "Console" tab for red errors - most (but not all) mean that your JavaScript has an error, and the browser is refusing to process further JavaScript.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-10T17:37:13.297Z
Answers.Text: Nothing under XHR requests and no JS errors :( It looks like a permissions issue to me, especially on the screenshots where the group field doesn't show at all, but can't figure out what permission may be missing.
Answers.UserDisplayName: Andy Burns
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-08T22:01:31.940Z
Answers.Text: I've isolated it down to that group search works for the same permission set on domain ID 1 but not child sites.
Answers.UserDisplayName: Andy Burns
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-08T22:23:23.520Z
Answers.Text: Since I replicated on another multisite I've logged an issue: https://lab.civicrm.org/dev/core/-/issues/2827
Answers.UserDisplayName: Andy Burns
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-02T14:25:37.423Z
Answers.LastActivityDate: 2021-08-02T14:25:37.423Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Ever since Civi 5.35.2, group search does not populate for non-admin users. See discussion here: <a href="https://github.com/civicrm/civicrm-core/pull/19372" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/19372</a>. Before all groups would show. On multisite. Users have <code>CiviCRM Multisite: list all groups in domain permission.</code> Groups do show in search builder.</p>
  <p>What is curious is a near identical staging environment it does work. It is same Civi version and pretty near close to what is on production. I've ruled out extensions (renamed directory) and many WP plugins. Can someone assist in narrowing down where the problem is?</p>
  <p>Find Contacts:</p>
  <p><a href="https://i.sstatic.net/eBQUg.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/eBQUg.png" alt="enter image description here" /></a></p>
  <p>Advanced Search:</p>
  <p><a href="https://i.sstatic.net/VHK5m.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VHK5m.png" alt="enter image description here" /></a></p>
  <p>Find Contributions (group dropdown entirely missing)
  <a href="https://i.sstatic.net/EWtz6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EWtz6.png" alt="enter image description here" /></a></p>
  <p>Same behavior occurs in Find Participants and Find Memberships</p>
  
Tags: <groups><permissions><search><multisite>
Title: Group search not available on all search screens except for search builder
ThreadText: # Group search not available on all search screens except for search builder
  
  (Asked by: username_0 on 2021-07-28)
  
  Ever since Civi 5.35.2, group search does not populate for non-admin users. See discussion here: <https://github.com/civicrm/civicrm-core/pull/19372>. Before all groups would show. On multisite. Users have `CiviCRM Multisite: list all groups in domain permission.` Groups do show in search builder.
  
  What is curious is a near identical staging environment it does work. It is same Civi version and pretty near close to what is on production. I've ruled out extensions (renamed directory) and many WP plugins. Can someone assist in narrowing down where the problem is?
  
  Find Contacts:
  
  [![enter image description here](https://i.sstatic.net/eBQUg.png)](https://i.sstatic.net/eBQUg.png)
  
  Advanced Search:
  
  [![enter image description here](https://i.sstatic.net/VHK5m.png)](https://i.sstatic.net/VHK5m.png)
  
  Find Contributions (group dropdown entirely missing)
  [![enter image description here](https://i.sstatic.net/EWtz6.png)](https://i.sstatic.net/EWtz6.png)
  
  Same behavior occurs in Find Participants and Find Memberships
  
  **Tags:** groups, permissions, search, multisite
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2021-09-23. Score: 1 | Accepted answer
  
  Removing this commit: <https://github.com/civicrm/civicrm-core/pull/19372/commits/7ffbc14effcf98ade1381002375947b36af712b6> got the groups to show again.
  
  For me, listing all groups to all users is fine and preferable over group search missing entirely. This is what WP users were used to for some time. My understanding is that this was Drupal based functionality. Users can only see the contacts they are permissioned to in whatever group it is as well.
  
  Using multisite on 5.35.2
  
  
  ---
  
  ### Answer by username_1 on 2021-08-02. Score: 1
  
  If you open your web browser's Developer Tools (press F12) and go to the Network tab, you should be able to get more information. When you click the "Groups" drop-down, look for the new request at the bottom of the Network tab. It will almost certainly have a purple "500" or "403" instead of the green "200" next to it. Click that line, check the "Response" sub-tab, and you'll have a detailed error message.
  
  > **Comments:**
  > **username_0**: Unfortunately it is not showing the request.  
  > **username_1**: That means that either a) you're filtering out XHR requests (check the subtabs of the Network tab) or b) you have a JavaScript error on the page - which would actually explain this problem pretty well.  Check the "Console" tab for red errors - most (but not all) mean that your JavaScript has an error, and the browser is refusing to process further JavaScript.  
  > **username_0**: Nothing under XHR requests and no JS errors :( It looks like a permissions issue to me, especially on the screenshots where the group field doesn't show at all, but can't figure out what permission may be missing.  
  > **username_0**: I've isolated it down to that group search works for the same permission set on domain ID 1 but not child sites.  
  > **username_0**: Since I replicated on another multisite I've logged an issue: https://lab.civicrm.org/dev/core/-/issues/2827  
  
  ---
  
  