Answers.Body: <p>I'm not sure if there's a more formal way to do it, but you could probably fake it with a combination of these free plugins...</p>
  <ul>
  <li><a href="https://plugins.craftcms.com/cp-css" rel="nofollow noreferrer">Control Panel CSS</a></li>
  <li><a href="https://plugins.craftcms.com/cp-js" rel="nofollow noreferrer">Control Panel JS</a></li>
  <li><a href="https://plugins.craftcms.com/cp-body-classes" rel="nofollow noreferrer">Control Panel Body Classes</a></li>
  </ul>
  <p><em>* Disclaimer: I'm the author of all three.</em></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-26T20:54:28.033Z
Answers.LastActivityDate: 2024-01-26T20:54:28.033Z
Answers.UserDisplayName: Lindsey D
Body: <p>I need to restrict access to users <strong>(not entries)</strong> of say <code>AdminGroupA</code> to be able to access and manage users of <code>UserGroupA</code> in the Control Panel.  Right now, the user <code>AdminGroupA</code> can browse all of the users in Craft no matter what the permissions and user groups are.  As far as I can tell, there is no way to do that out of the box?</p>
  <p>More details.  Say I have groups:</p>
  <ul>
  <li><code>AdminGroupA</code>, <code>AdminGroupB</code>, <code>AdminGroupC</code></li>
  <li><code>UserGroupA</code>, <code>UserGroupB</code>, <code>UserGroupC</code></li>
  </ul>
  <p>I want to create an admin user (e.g. <code>AdminGroupA</code>) that only has access to a user group (e.g. <code>UserGroupA</code>).  I've given the group <code>AdminGroupA</code> the following permissions:</p>
  <ul>
  <li>Edit users
  <ul>
  <li>Register users</li>
  <li>Moderate users</li>
  <li>Assign user groups
  <ul>
  <li>Assign users to &quot;<code>UserGroupA</code>&quot;</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  <p>This allows the user to browse all users in Craft no matter what the permissions and user groups are.</p>
  <p>Please advise.</p>
  
Tags: <craft3><users><control-panel><permissions><user-groups>
Title: Craft 3 / 4 CP: Restrict users to specific user groups in Users view
ThreadText: # Craft 3 / 4 CP: Restrict users to specific user groups in Users view
  
  (Asked by: username_0 on 2024-01-26)
  
  I need to restrict access to users **(not entries)** of say `AdminGroupA` to be able to access and manage users of `UserGroupA` in the Control Panel. Right now, the user `AdminGroupA` can browse all of the users in Craft no matter what the permissions and user groups are. As far as I can tell, there is no way to do that out of the box?
  
  More details. Say I have groups:
  
  * `AdminGroupA`, `AdminGroupB`, `AdminGroupC`
  * `UserGroupA`, `UserGroupB`, `UserGroupC`
  
  I want to create an admin user (e.g. `AdminGroupA`) that only has access to a user group (e.g. `UserGroupA`). I've given the group `AdminGroupA` the following permissions:
  
  * Edit users
    + Register users
    + Moderate users
    + Assign user groups
      - Assign users to "`UserGroupA`"
  
  This allows the user to browse all users in Craft no matter what the permissions and user groups are.
  
  Please advise.
  
  **Tags:** craft3, users, control-panel, permissions, user-groups
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-01-26. Score: 1
  
  I'm not sure if there's a more formal way to do it, but you could probably fake it with a combination of these free plugins...
  
  * [Control Panel CSS](https://plugins.craftcms.com/cp-css)
  * [Control Panel JS](https://plugins.craftcms.com/cp-js)
  * [Control Panel Body Classes](https://plugins.craftcms.com/cp-body-classes)
  
  *\* Disclaimer: I'm the author of all three.*
  
  
  ---
  
  