Using 'sn record picker' without logging in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 09:40 PM
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'">
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2024 07:15 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2024 07:25 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 06:36 AM
Can you try using public-record-picker instead of sn-record-picker