SalesforceLabs / survey-force

85 stars 61 forks source link

Authorization Required (In both latest and older version) #103

Closed jaegchoi closed 3 years ago

jaegchoi commented 3 years ago

Hi, our organization is using an older Survey Force version (2.27) and because of the recent Guest User restrictions, surveys are broken for us now. To test that the latest version of Survey Force will work if we upgrade it I have checked out this repo and created a scratch org using the included sfdx-project.json. However, after following all steps I am still getting the Authorization Required error, but also a Script-thrown exception. I will list the steps I have followed below:

Set the permissions on the guest user profile of the site image

TakeSurvey page is added to the enabled pages list on the site image

Survey sharing rule has been added image

I am able to preview the TakeSurvey page but if I try to view or preview the URL for the survey I get this unauthorized page image image

Please let me know if I missed any steps or if there is anything else I can try, as this is affecting our prod environment

jrattanpal commented 3 years ago

It all looks good. Only thing I can think of is, have you also given access to ALL fields in those objects? While you can give read access to those objects, you must also give access to each field.

If you have then please capture debug logs for this page and share here (attach as a file) so I can take a look.

https://www.forcetalks.com/salesforce-topic/how-to-set-the-debug-for-guest-user-in-salesforce/

jrattanpal commented 3 years ago

Closing this issue for now. Once you have the logs, you can reopen