You need to sign in to do that
Don't have an account?
3 Creeks
System Admin Profile getting Insufficient Privileges error
I have a managed packaged that is installed in an unlimited edition sandbox. When a user with a system admin profile accesses the application, they receive a Insufficient Privileges error when the code makes a call to Schema.describeSObjects().
The user is using the standard System Admin profile, not one cloned from the standard System Admin profile.
I have not been able to replicate the issue in my own environments.
Does anyone have any idea of what might be going on?
Thanks
The user is using the standard System Admin profile, not one cloned from the standard System Admin profile.
I have not been able to replicate the issue in my own environments.
Does anyone have any idea of what might be going on?
Thanks
The code was trying to construct the name of the objects it was interested in describing and sometimes the name of the object was constructed wrong. What threw me was that the message the customer got was "Insufficient Privileges" on the screen and Schema.describeSObjects() was throwing an "API not accessible" exception in the logs.
When I finally was able to replicate the issue, the message I got was completely different both on screen and in the logs. I got a message that basically said the object does not exist, so it was obvious then.
I was never able to get the same message the user got...strange.
Thanks for your response.
All Answers
The code was trying to construct the name of the objects it was interested in describing and sometimes the name of the object was constructed wrong. What threw me was that the message the customer got was "Insufficient Privileges" on the screen and Schema.describeSObjects() was throwing an "API not accessible" exception in the logs.
When I finally was able to replicate the issue, the message I got was completely different both on screen and in the logs. I got a message that basically said the object does not exist, so it was obvious then.
I was never able to get the same message the user got...strange.
Thanks for your response.