Get Insufficient Privileges error when I log in as a different profile and try to access Skuid version of Salesforce's object

  • 1
  • Problem
  • Updated 1 year ago
  • Not a Problem
I am a system admin and keep getting the Insufficient Privileges error when I log in as three particular profiles and try to load Skuid version of Salesforce's lead, account and opportunity pages. What really confuses me is that I do not get this error for 1 out of 40 individuals in these profiles. The users have access to the visualforce page. and seems like the tabs are being overridden by a visualforce page. 
Photo of Ogagaoghene Attah

Ogagaoghene Attah

  • 120 Points 100 badge 2x thumb
  • confused and sad

Posted 1 year ago

  • 1
Photo of Josef Lagorio

Josef Lagorio

  • 2,874 Points 2k badge 2x thumb
Do the users you log in as have the appropriate permission set? 
Photo of Ogagaoghene Attah

Ogagaoghene Attah

  • 120 Points 100 badge 2x thumb
I believe they do. Any specific ones I should check?
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
Check the "Skuid Page Viewer" permission Set - your users need that.  This is assigned per user, not by profile.  You can configure Skuid to auto assign this permission set whenever a license is given to a user.  Also, double check that your users have access to the Visualforce pages that are calling your Skuid pages.
Photo of Ogagaoghene Attah

Ogagaoghene Attah

  • 120 Points 100 badge 2x thumb
The profiles have access to the VisualForce page and have the skuid page viewer individually assigned but this still happens.
(Edited)
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Does the privileges error specify a specific record, resource, or item? There could be a field level security or sharing setting that's keeping some part of the lead, account or opportunity pages private for this user. 
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Chandra has shared some good suggestions above. Also, when you see the error, do you see any browser console errors too? Those can sometimes be more informative than what's on the page itself.

I also wanted to link this conversation to the documentation that should help clarify what's involved: https://docs.skuid.com/latest/en/skuid/deploy/salesforce/user-access/index.html
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Do the affected users have anything in common, like their Role, sales team, or something like that?
Is this happening when they look at a specific lead, opportunity, or account in a detail page? Or, is this happening for list pages?

One possibility to look for is an uploaded file (image, document, or otherwise) that wasn't shared publicly. I think if this is an issue, you would see an error in your browser console.
Another test you can run: if the users are running into this message when viewing a tab that's been overriden by a Visualforce page, that's a different scenario than if they were to view the direct link to preview the Skuid page. I would recommend finding the Skuid page that's being used in this Visualforce page, then previewing it and then viewing that preview URL as the affected user. 
Photo of Ogagaoghene Attah

Ogagaoghene Attah

  • 120 Points 100 badge 2x thumb
The users themselves can see all the pages. Admins cannot see these pages when logged in as the users. They share roles but when logged in as different people within these roles, admins can and cannot see the objects.
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
It sounds like it may be related to sharing rules, or it may be related to uploaded files that aren't being shared publicly across the org. Have you checked to see if the sharing settings for the Account, Opportunity or Lead objects are in place to allow your own admin profile and the user's profiles / roles to see them?
Photo of Ogagaoghene Attah

Ogagaoghene Attah

  • 120 Points 100 badge 2x thumb
The sharing settings are public read/write and grant access using hierarchies.
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
I connected with Ogaga, and this error message is coming from another vendor's installed package.