What are the permissions needed to use getObjectInfo (needed for default record type) && getPicklistValues wire adapters in public community?

I've added but I'm getting 401 when accessing webruntime/api/services/data/v58.0/ui-api/object-info/Contact?language=en-US&asGuest=true&htmlEncode=false

errorCode : "UNAUTHORIZED"
message: "Unauthorized access"

I've granted Contact Read and field read permissions for the public profile, but that doesn't seem to be enough.

I'm using a custom LWR template if that makes a difference.

  • Can you try to give Contact Read and field read permissions for community profiles! Commented Aug 25, 2023 at 17:17

2 Answers 2


I just sorted this out on an LWR, you have to check the "Allow guest users to access public APIs" setting in the Workspace under "Preferences" and also give access to the necessary fields on the Object.


Setup -> All Sites -> Workspaces -> Preferences -> check the checkbox Allow guest users to access public APIs

It works for me

  • Identical with existing answer, isn't it? Commented May 9 at 10:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .