Skip to main content

I’m trying to set up a new Data Source and Authentication Provider in SKUID for the purposes of setting up a public access method of accessing Salesforce data.


I followed this guide:


https://docs.skuid.com/v11.2.0/en/data/salesforce/


I’ve set it up and everything seems to work on the live working page I’m using (records are retrieved / updated as needed), but the problem I’m having is in the SKUID editor I’m getting an error:


“Error retrieving metadata for Model(s) associated with Data Source ‘MY_DATA_SOURCE’. Please check Models’ properties to ensure they are set correctly. Unable to authenticate to Salesforce. Metadata could not be retrieved. Authentication Failed”


It’s difficult to tell because changes in Salesforce don’t seem to necessarily sync live with SKUID to prevent this error from happening in the editor, but it seems like if I set the user that configured the App in Salesforce that makes this connection (the Salesforce user that this connection runs through) to a System Administrator, this error goes away and the metadata is retrieved properly, but if I set it back to a very limited profile the error returns.


The limited profile I set up only has access as defined in the documentation for setting this up, and for one object I’m working with.


So based on the documentation / guide - on the profile, API Enabled is checked and the Connected App is given access via the profile as well.


What permission am I missing here to allow SKUID to read the metadata properly that a System Administrator has but the limited profile doesn’t?


If anyone has any ideas they would be greatly appreciated.


Thanks!

I removed the Data Source and set it up again the same way and it seems to be working now whether I’m using the System Administrator or the limited profile. Not sure what changed as it was set up the same way each time.


It looks like I’m getting the error again. It’s as if the authentication works properly for a while and then stops working. Why might this happen? How can I get it to stick permanently?


I think that the user I set up the site with needs to be a System Admininstrator for this to work and the times I’m seeing it working when they aren’t a system admin are simply using cache from when the user was a system admin. The problem though then becomes making the user a system admin gives full admin access publicly which I absolutely don’t want to do… What permissions do I need to give to allow a more restricted user to be used for a public site? Is this even possible?


Reply