Can we expose a reference field on a public portal page for unauthenticated users?

Tzach Benbenist
Tera Guru

Hi everyone,

 

I have a public page & widget for a specific portal, the purpose is to create a landing page for incident creation without the needto login to the system.

Can we grant read access to the table in this case? for example a reference field to sys_choice for incident categories.

 

I tried to create a new ACL's , the first was to the sys_choice table with none with read operation and requires the public role and the second was the sys_choice table with "*" and requires the public role

 

I also tried to point the reference feld to a new custom table with the same roles and acl's.

this is the console error

Failed to load resource: the server responded with a status of 401 (Unauthorized)

4 REPLIES 4

Mudit_Singh
Tera Contributor

Hi @Tzach Benbenist ,

Have you configured the reference field with sys_choiceScreenshot 2024-03-31 123246.png

 

 please check if this helps!!

Hi,

 

There is no table in this case, the ref field is written on the widget directly.

For example:

<sn-record-picker placeholder="" field="category" table="'sys_choice'" display-field="'label'" display-fields="'label,hint'" value-field="'sys_id'" search-fields="'label'" page-size="100" default-query="'name=incident^element=category^inactive=false'"></sn-record-picker>

Amit Pandey
Kilo Sage

Hi @Tzach Benbenist 

 

Why do you need this? Ideally the user should login first.

 

Regards,

Amit

Hi,

 

This is a public tablet on the IT site, and the whole process should be quick.