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
Narayana Reddy 30Narayana Reddy 30 

could you please let me know how to control the salesforce standard "sharing" button visibility for certain profiles or permission sets

Hi,

Salresforce standard "Sharing" button is added to all opportunity page layouts, however we would like to control the visibility of the button based on profiles . Could you please let me know whether there is any profile or permission set permission which controls the "sharing" button visibility . If not how to control the visibility of the button .
ShirishaShirisha (Salesforce Developers) 
Hi Narayana,

Greetings!

Sharing button can be visible for all the System Administrators and when your sharing model is either Private or Public Read Only for a type of record or related record as suggested here (https://help.salesforce.com/articleView?id=faq_general_why_cant_i_see_the_sharing.htm&type=5).

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri