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
srinivasarao Muppanenisrinivasarao Muppaneni 

is there a way to share a record by a user when the owd settings are set to private

ManojjenaManojjena
Hi srinivasarao Muppaneni,

Yes you can either configure a sharing rule to assign to a group where you can add that group in sharing rule .
Or you can write apex sharing to sharing record .
GulshanRajGulshanRaj
There are several ways to do that:

1) You can also use manual sharing.  There is button available on detail page layout after sharing made private, refer below image
User-added image

2) Some ways through coding (via customObject_share )
https://developer.salesforce.com/page/Using_Apex_Managed_Sharing_to_Create_Custom_Record_Sharing_Logic


Please let me know if it helps.


Thanks
Gulshan Raj