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
Keith PatellaKeith Patella 

Viewing Apex Managed Sharing in Salesforce Lightning or Classic

I'm programmically adding sharing customizations to our Custom Objects. This is working and I can verify it by logging in with specific users and seeing what objects they can view. 

What I'm wondering is there a place in Salesforce that I can view these programmically added sharing rules I can't seem to find them anywhere.
pankul guptapankul gupta
Hi Keith,

You can find the details of the same while fetching it from the query like:
Select Id from CustomObject__share;

Else, you can create one related list under the custom object and store the information there. Please refer the below link for reference:
https://developer.salesforce.com/page/Using_Apex_Managed_Sharing_to_Create_Custom_Record_Sharing_Logic

There is no out of the box salesforce functionality which provides you details somewhere in any Page.

Regards,
Pankul