Error: ‘You don’t have the level of access necessary to perform the operation you required’

I created a screen flow that includes fields to collect user input and shared that form on a public site, allowing anyone to fill it out. To achieve this, I created a digital experience public site and added a flow screen component to it.

However, when I shared the site link with another user, they received the error ‘You don’t have the level of access necessary to perform the operation you required.‘ In this article, I will explain how to resolve this error and gain access.

Error:

Below, I have provided a screenshot of the error I’m getting when I open the public site to create a record in Salesforce.

Error Post in Salesforce Public Site

Additionally, when external users open the site, they are presented with a login screen, but they don’t have an account on it, and I wanted to fill out that form without logging in.

Allow Permission to Guest User in Salesforce Public Site

Solution:

Below, I will explain the solution so that users can access the public website and create a record in Salesforce.

1. Access Digital Experience Public Site Without Logging in to Salesforce

In the step below, I will explain the solution so that external/guest users can easily create a record without needing to log in to the site.

  • Setup -> All Sites -> click on the Workspace Action for the website you want to make changes to.
  • Click Builder -> go to Settings -> check the checkbox: Guest users can see and interact with the site without logging in.

This allows anyone to create a record in the Salesforce object from a public website.

Change Setting in Digital Experience Site in Salesforce.jpg

2. Provide Correct Active Site Home Page For Public Site in Salesforce

After that, if you open the URL where we deploy the flow, you will see an error stating that ‘You don’t have the level of access necessary to perform the operation you required. Please contact the Owner of the record or the System Administrator.’

This error occurs because the guest user doesn’t have the proper access to the object for which they are creating a record.