function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
romschnromschn 

REST API access to site guest user

Hi everyone,

I have created a REST API in salesforce.

I also have created a community site. I have given 'API enabled' permission to the user profiles for site users. They are able to access the REST API fine.

Now, I also want to allow to have a guest access to my site. However, I don't see any option to give 'API enabled' permission to site guest user.
When I tried to create a permission set, and assign to guest user profile - it gave me error - "The user license doesn't allow the permission: API Enabled".

Could anyone please help me on how to get this done.

Thank you.

 
Andy BoettcherAndy Boettcher
Salesforce does not allow the Sites guest user to access the native SOAP/REST API at all.  One method you can do is to spin up your own custom SOAP/REST Apex web service and expose that via Sites.