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
suji srinivasansuji srinivasan 

how to restrict access in profiles

I have two profiles,in profile 1 user should have read access to account and opportunity , only owner should  edit the record they own.

In profile 2 account and opportunity should be private.how to achiev this?

Thanks in advance
Best Answer chosen by suji srinivasan
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Suji,

The main thing here is you cannot give record level access using Profiles. You have to create the public groups and create the sharing rules as per your requirement.

As the low level security should be private so you have to make OWD as private on Account . and create the sharing rule for read access for profile 1 users by creating a public group.

Anyways the owner of the record will have edit access.

If this solution helps,Please mark it as best answer.

Thanks,
 

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Suji,

The main thing here is you cannot give record level access using Profiles. You have to create the public groups and create the sharing rules as per your requirement.

As the low level security should be private so you have to make OWD as private on Account . and create the sharing rule for read access for profile 1 users by creating a public group.

Anyways the owner of the record will have edit access.

If this solution helps,Please mark it as best answer.

Thanks,
 
This was selected as the best answer
suji srinivasansuji srinivasan
Thank you , it was helpful.
Cameron SantiagoCameron Santiago
If your issue still pending so you can take help from https://truepaintballer.com/best-paintball-mask/ for suitable answer.