You need to sign in to do that
Don't have an account?

Strange Issue : Insufficient Privileges when Visualforce page is accessed?
I am getting Insufficient privileges issue when visualforce page is accessed on a tab.
Actually, the Visualforce page overrides the standard tab of custom object.
I have checked all the custom object permissions on the profile and made sure that Visualforce page and Apex classes are enabled for the profile.
The strange thing is that, when i turn on the View Setup and Configuration permission in the profile, the Visualforce page gets rendered well without any issue.
But i don't want that permission to be turned on.
If i turn off, i get the same issue.
Any thoughts?
Appreciate any help on this.
Is your page accessing/displaying any data outside of your custom object that might need these permissions? I seem to recall encountering something similar when I was trying to scrape data from the Company Information page into a VF page.
Failing that, does your page have an extension/custom controller? If so, have you tried adding debug to the constructor to see if its an issue gaining access to the page itself, or something that is being done when generating the page.
Thanks Bob,
I am not accessing any company info.
What i am doing this is
The only other thing that I've been bitten by around this is sharing - where my controller was declared "with sharing" and I didn't have access to the object in question. However, modify all data should override sharing, so it doesn't sound like that.
The only other thing I can suggest if you haven't tried already is to comment out some/all of the content on the page which may give you a clue if its field related.
Thanks Bob,
I will try it out and let you know what happens.
I will comment step by step Visualforce page and see what could be the issue.
If it's any help, this error seems to caused by the Search Results portion of the page. Very quickly, the Search Parameters portion at the top is displayed before the error message takes over the page. You should be able comment out the Search Results to confirm this behavior, which if true will hopefully narrow down the problem.
This Link helpped me resolve this issue. Just FYI.
Mine seems to be field related since none of the fixes above work and commenting out certain fields did fix the issue. I'm a system admin and the fields are set to visible so i'm not sure why it's giving me insufficient privileges. Any suggestions?
Echoing others here... Thanks Colemab, this resolved my issue too.
FWIW, in SF Classic, you will find the pages now under Develop > Visualforce Pages.