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
Jan Kopejtko 2Jan Kopejtko 2 

Mass edit custom list view button - how to hide it only for SOME users

Hey, this one is for the Salesforce pros:

I have an app installed for mass editing records. When I was installing the app, I chose the accessibility settings 'for all users'. It is accesible via a list view of an object, let's say via object Account. I open Account, change list view to "Show all", then on the right side of the page I see my custom button that comes with the intalled app! Awesome!

I would like to hide it for some users now. Is that possible?

I know that profiles have set access to Visualforce Pages (that's how the button is made). If I disable the access to that Visualforce Page containing the code for the button, I still have the button visible, it just won't let the user access it.
Best Answer chosen by Jan Kopejtko 2
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi Jan,
Try by removing edit permission of the object in the profile of specific users.

Please refer below links which might help you in this
https://developer.salesforce.com/forums/?id=906F000000094zqIAA

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards