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
sujin h ssujin h s 

Opportunity record locking/hiding

Hi,

Opportunity object is having public read/write in my org.
I want only 2 opportunity records to be hided/ restricted access.
It has to be only shared with 3 users & others don't have to have the access to those 2 records.
Is it possible to do that? If yes, How?

Thanks!
ANUTEJANUTEJ (Salesforce Developers) 
Hi Sujin,

As mentioned in this article https://help.salesforce.com/articleView?id=faq_record_access.htm&type=5

"It must be set to Private if at least one of your users should not see a record."

And the access to the records must be given via other methods.

So generally if even a single user should not have access to a specific record the OWD is set to private and then the access to the records is given expanded with different ways.

You can try checking the Record Level Security,in the below article:

>> https://help.salesforce.com/articleView?id=security_data_access.htm&type=5

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.