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
Manish Sharma 12Manish Sharma 12 

Insufficient Privilege error

Hi Friends,

We are calling the Visualforce pages of one salesforce org from another salesforce org using the SSO (Single sign On). Sometimes it generates an error message like "insufficient Privilege error."

Please let me know what is the reason for this error.

Thanks And Regards
Manish Sharma
Hi Manish, When you say some times its generating this error this working the rest of the time?

From what I understand, accessing a VF page needs profile access and you are getting insufficient privileges which means there is some access issue.
Hi Manish,
In profile their is something called as Visaulforce page access, you need to add your vf pages to those profile for which you wnat to give access.
Manish Sharma 12Manish Sharma 12
Thanks for your reply Sonam and Amit. Most of the times it is working fine so it it not the issue of profile.
anil savaliya 11anil savaliya 11
Hi Manish,

Please keep API version same for VF page and Apex Class,Sometime It's cause insufficient Privileges.