I have a button that was created using the declarative interface. It sits on a page layout for a custom object. This button opens up a Visual Force page. Once this visual force pages loads, it runs some apex code and then returns back to the page the button was on. As an administrator, this works wonderfully. However for one of my users, who is a standard plus user, they are greeted with a message telling them that they have insufficient privileges.

I have tried the following to allow them access:

  • Sharing Rules
  • Permission Sets
  • Security settings on the apex classes
  • Remove 'with sharing' from one of the classes

My question is, what other ways does salesforce block access? Or what do I need to do to give this user sufficient privileges to run the apex code?

  • Welcome to Salesforce Stack Exchange, good question!
    – Dominic
    Commented May 8, 2015 at 9:25

1 Answer 1


You should allow users to access the visualforce page. This can be done on profile level.

Enable Visualforce


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .