Public users accessing catalog items on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 05:06 AM
Hi all,
Currently, we have the page ‘csm_sc_cat_item’ set as public, allowing each catalog item with public visibility (three in total) to be submitted by public/unauthenticated users.
I have a requirement to switch this page ‘csm_sc_cat_item’ to the out-of-the-box setting of public=false. However, the three catalog items still need to be accessible for submission by public users. When I attempt to set the aforementioned page to ‘Public=false’, the three catalog items with ‘public’ visibility are not visible to public/unauthenticated users and cannot be submitted unless they log in.
My question is: How can we allow public/unauthenticated users to access only the three catalog items if the page ‘csm_sc_cat_item’ is set as public=false?
Thank you in advance for your assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 06:20 AM
Hello @Community Alums,
Did you create the User Criteria mentioned and added to the item ?
"To make the item public, create a User Criteria with Public Role. Use Catalog Item to be available for this public User Criteria. Make sure there is no user criteria in the Not Available For section.
If you have glide.sc.use_user_criteria to false, make sure the roles field is on the form and add the public role to it. Using entitlement is a deprecated behavior of securing Catalog Item from Fuji and should be avoided."
This is also important:
- Checkbox cannot be made public. Instead, use a Yes/No variable or Lookup Select Box with two options.
- Variables that reference other tables will require further work. List Collectors will not work. References will require read ACLs with the public role and tablename_list added to sys_public (reference icon will work, autocomplete will not). Lookup Select Boxes that reference another table will require read ACLs with the public role.
Hope this helps, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 04:23 AM
@Shruti Khaire Yes user criteria on the items are set to public role and system property is set to true, but the 3 items are still not visible for public users when testing within incognito window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 08:23 AM
Hello @Community Alums ,
Since the sc_cat_item cannot be set to public as you mentioned it difficut to achieve this still you can try this way out mentioned below:
To do this, I found this KB article KB0681861 and
- copy "sc_cat_item" page and make "sc_cat_item_public" page then set it public
- assign "public" role to page roles
- clone all widgets in "sc_cat_item_public" page and sets all of them public
- assign "sc_cat_item_public" page as a homepage in my own service portal
I can display item page from this portal with logged in user.
But even I paste same item page URL to other browser (unauthorised), it still displays log in page.
In the article, it mentions "make the item public".
It means that set public role to the item like page settings.
I tried it but, my item setting page doesn't shows roles field even it is define in Form Design.
Thank you.