Using 'sn record picker' without logging in

ddd
Tera Contributor

In the portal I user widget to create a form
in the form I want to user sn-record-picker without login(no login user)
how should I make the source
<sn-record-picker 
    field="user" 
    table="'sys_user'" 
    display-field="'name'" 
    value-field="'sys_id'" 
    search-fields="'name'" 
    page-size="100" 
    default-query="'active=true'">

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@ddd 

you should have sys_user table with public or snc_external role so that users can see the data

But I won't recommend doing this as it exposes sys_user to anyone without logging in

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Runjay Patel
Giga Sage

Hi @ddd ,

table level read acl won’t allow to do that, you need to allow from acl. Create read acl with no role then your widget should work but that is not recommended solution as it will expose to everyone.

 

Accept the solution if it helped 

PT5
Tera Contributor

Can you try using public-record-picker instead of sn-record-picker