function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Roles,Profiles,Public Groups

Hello All

i had a question regarding Role,Profiles,public groups. we had different user groups. Each User group has access to all Data/Records in salesforce.But for one user group(10 people), they want to see Data/Records created by that user group(10 people), they dont want to access any other data/records which are not created by their user group(10 people).


Note:They can able to access the  records created by the users with in their group. It means user should able to access their own records and the records created by the other users in their particular group.

Please help me urgent..need sollution to get start of the project.

Thanks in Advance



You can't create rules that add restrictions to data.  If the org wide default is for all users to have access to all records, there's no way to have a group of users that can't see those records.


This is probably better posted in the general development board, as it seems related to sharing rather than Apex development.


Indeed, this post should be over in general development. But to answer your question, you'll have to go about the other way: make the organization wide defaults "private", then create a public group that contains all users except the one group that doesn't want access, and create a sharing rule with that public group to give everyone except your one group of users access to all data ("Group: Everyone Shares With Group: All But One"). You can then create a second rule to give the other group access to their own data and that one other group.