---
schema_version: "1"
id: 99557251fe991f0790a4d2937f179e508d00eb8c66c03adbc8103931b4692c85
title: Create Sharing Rules Based on Group Membership
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/security_sharing_rules_group.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.security_sharing_rules_group.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 88d33b6f03e1fabef471dbb8723f61ecfc69720a3b0770fd942b6a408ee5411c
description: For the User object, you can create sharing rules based on group membership.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# Create Sharing Rules Based on Group Membership

For the User object, you can create sharing rules based on group membership.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d69388e75">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d69388e75 ">To create sharing rules:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d69388e75 ">Manage Sharing</td>

          </tr>
        </tbody>
      </table>

1. If you plan to include public groups in your sharing rule, confirm that the appropriate groups have been created.
2. From Setup, in the Quick Find box, enter Sharing Settings, then select **Sharing Settings**.
3. In the Sharing Rules related list for the User object, click **New**.
4. Enter the label name and rule name. The label name appears on the user interface. The rule name is a unique name used by the API and managed packages.
5. Optionally, enter a description of the sharing rule, up to 1,000 characters.
6. For the rule type, select **Based on group membership**.
7. Select which users to be shared. For Users are a member of, select a category from the first dropdown list and a set of users from the second dropdown list or lookup field.
    
    See [Sharing Rule Categories](https://help.salesforce.com/s/articleView?id=platform.security_sharing_data_set_categories.htm&release=264.0.0&type=5 "When you define a sharing rule, you can choose from the following categories in the owned by members of and Share with dropdown lists. Depending on the type of sharing rule and the features enabled for your organization, some categories may not appear.") for information on these categories.
8. Specify the users who get access to the data. For Share with, select a category from the first dropdown list and a set of users from the second dropdown list or lookup field.
9. Select sharing access settings for users.
    
     
    | Access Setting | Description |
    | --- | --- |
    | Read Only | Users can view, but not update, records. |
    | Read/Write | Users can view and update records. |
10. Click **Save**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/images/icon_note.png)
    
    Note A sharing rule’s editable fields depend on its type. For sharing rules based on group membership,, you can edit only the label, rule name, and sharing access level. If you must edit other fields, delete the rule and create a new one.