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
OnDem DevOnDem Dev 

Insufficient Privileges error if View Setup and Configuration profile permission is unchecked

My application has two profiles, one for Admin and other for Non Admin.

 

There is a Custom Object which is overriden with Visualforce page.

For Admin profile everything works fine.

 

In Non Admin Profile, if View Setup and Configuration permission is checked, accessing the above Custom tab and remaining functionality works fine. 

 

If View Setup permission is unchecked, Insufficient Privileges error message is shown.

 

Can anyone help me out in resolving this issue?

Note: I even tested by giving all the Custom Object Permissions but no luck.

 

OnDem

Message Edited by OnDem Dev on 01-12-2010 10:48 PM
Message Edited by OnDem Dev on 01-12-2010 10:52 PM
shillyershillyer

Did you make sure the page is enabled for that profile?

 

To set Visualforce page security from a profile detail page:

  1. Click Setup | Manage Users | Profiles.
  2. Click the name of the profile you want to modify.
  3. In the Enabled Visualforce Page Access related list, click Edit.
  4. Select the Visualforce pages that you want to enable from the Available Visualforce Pages list and click Add.
  5. Select the Visualforce pages that you want to disable from the Enabled Visualforce Pages list and click Remove.
  6. Click Save.

Hope that helps,

Sati

 

Message Edited by shillyer on 01-12-2010 11:11 AM
OnDem DevOnDem Dev

Thanks Sati,

 

The Visualforce page is already enabled for the profile.

It works fine when View Setup and Configuration profile permission is checked.

 

The problem comes only if it is unchecked.

Accessing the custom object tab(Overrides Visualforce page) then gives Insufficient Privileges error.

 

Any help on this will be highly appreciated.

 

OnDem

LacertosussLacertosuss

Hello,

 

Has this issue been resolved? I'm facing a similar issue with a couple of my users and not sure what the solutions is! They have the correct permissions assigned to them.

 

Thanks in advance for your help

 

TK

Imran MohammedImran Mohammed

Hi,

 

Were any of  you able to resolve the issue?

ritika@developerforceritika@developerforce

Hi,

 

Was anyone able to resolve this ?

I have been going through various posts in the community but could not find any solution.

 

Son in my case also, Non Admin Profile is getting insuffilient access (and strangely, only sometimes )

 

I have verified that

- The profile has access to VF and controller

- The profile has access to all objects involved

- The operations from the Page complete, logs shows everything fine, but while rendering, it shows this error.

 

Please let me know if anyone has any clue on this issue.

 

Regards,

Ritika Dhandia

www.ritikadhandia.in