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
balram kamboj 10balram kamboj 10 

Overriding OWD for Account & Contract to Private

Hi 

We have OWD for Account & Contract as Public Read Only now. Is there any way to override that to make it private and granting access using hierarchy without updating OWD ??  Like by using sharing rule or something else ?

Any help would really be appreciated.

Thanks 

B

AnkaiahAnkaiah (Salesforce Developers) 
Hi Balram,

For most objects, organization-wide sharing settings can be set to Private, Public Read Only, or Public Read/Write. In environments where the organization-wide sharing setting for an object is Private or Public Read Only, an admin can grant users additional access to records by setting up a role hierarchy or defining sharing rules. However, sharing rules can only be used to grant additional access—they can’t be used to restrict access to records beyond what was originally specified with the organization-wide sharing defaults.

for more information, please refer the below article.

https://help.salesforce.com/s/articleView?id=sf.security_sharing_owd_about.htm&type=5

If this helps, please mark it as best answer.

Regards,
Ankaiah