Loading
Connectivity issues between Mulesoft and customer corporate network.Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Manage Users and Data Access
Create Sharing Rules Based on Group Membership

Create Sharing Rules Based on Group Membership

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

Required Editions

Available in: both Salesforce Classic and Lightning Experience
Available in: Professional, Enterprise, Performance, Unlimited, and Developer Editions
User Permissions Needed
To create sharing rules: Manage Sharing
  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 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
    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.
 
Loading
Salesforce Help | Article