Configure Aura Guest User Access

Create a Visualforce page for your Aura Service Catalog Site so guest users have access to view and request catalog items. 

Required Editions

View supported editions.
User Permissions Needed
To set up Service Catalog site guest users: 

Permissions associated with the Service Catalog Site Builder

AND

Create and Set Up Experiences

AND

Manage Profiles and Permission Sets

checkmark This article applies to: Aura Experience Sites
X This article applies doesn’t apply to: LWR Experience sites, Salesforce sites, and externally built sites

Before you begin, ensure you’ve set up guest users for Service Catalog. See Set Up Service Catalog Guest Users.

Step I: Create a Visualforce Page

Use a Visualforce page to present your catalog items to guest users in your Service Catalog site.

  1. From Setup, in the Quick Find box, enter and select Visualforce Pages. 
  2. From the Visualforce Pages Setup page, Click New.
  3. For the Label field, enter a name.
  4. Enable Available for Lightning Experience, Experience Builder sites, and the mobile app.
  5. From the Visualforce Markup tab, enter this code.
    <apex:page showHeader="false" sidebar="false">
      <apex:includeLightning />
      <div id="item" />
        <script>
            $Lightning.use("runtime_service_servicecatalog:serviceCatalogLightningOut", function() {
              $Lightning.createComponent("runtime_service_servicecatalog:catalogItem",
                  {itemApiName: 'item_1708593530216_ItemFlow1'},
                  "item",
                  function(cmp) {
                    console.log("Item runner created");
                    // do some stuff
                  }
              );
            });
        </script>
    </apex:page>
    
  6. Save your work.

Step II: Set Your Site Access Setting

Grant your guest users access to the Visualforce page.

  1. From Experience Workspaces, in Administration, enable Let guest users view asset files, library files, and CMS content available to the site.
  2. From Experience Builder, in Settings, click the name of your guest user profile.
  3. From the guest user profile Setup page, select the Enabled Visualforce Page Access quick action, and then click Edit.
  4. Add Visualforce page you created to Enable Visualforce Pages
  5. Save your work.

Step III: Add the Visualforce Page to the Site

Connect the Visualforce Page to your Service Catalog site.

  1. From Experience Builder, in the Home page, click Lightning.
  2. Select the Visualforce Page component and place it in the right column of the page.
  3. Publish your changes.