Notifications

11412 views

How to make a record producer and catalog item public on a CMS page  | General Information


Description


It is common for users to request that record producers and catalog items be made public on the Content Management System. Since Service Now locks everything down, it can be difficult to make this work. Here are the steps based on the base system ESS Portal. Before the administrator proceeds with the steps below, it is required to have elevated security privileges, and to check the access control rules allowing on the [sc_cat_item] table and fields.

Solution


1. Make the CMS public

The first thing you need to do is make your CMS public. To do this make the Login Page field blank on your site.

Note: f you notice that certain blocks are not rendering, check the block and make sure the logged in check box is not checked.

 

2. Public Page

UI Pages by default require a login. We can change this by making them public. Go to the [sys_public] table and add these to the UI Page:

  • com.glideapp.servicecatalog_cat_item_view
  • com.glideapp.servicecatalog_category_view
  • item_option_new
  • question
  • service_catalog

If you have another page that requires a login, check the URL and the page ending in .do. Add this to the Public Pages.

Post Kingston, you need to add a public role to service_catalog processor.

You also might have a page in an iframe where the main layout renders, but the content in the iframe is requesting a login. To fix this, use the browser’s developer tool and select the iframe. You should see something like this.

<iframe width="100%" height="1484" frameborder="0" border="0" src="com.glideapp.servicecatalog_category_view.do?sysparm_nameofstack=1b5cea177bc2020026ef707d784d4d0a&amp;sysparm_parent=d258b953c611227a0146101fb1be7c31&amp;sysparm_clear_stack=yes" allowtransparency="true" name="gsft_main" scrolling="no" id="gsft_main"></iframe><

Look for the part with the src, just like the URL, you will want to make the .do public.

 

3. Making the Catalog Item public

To make a Catalog Item/Record Producer public, make both the item and the variables public.

  • 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 behaviour of securing Catalog Item from Fuji and should be avoided.

  • Set two step check out to false. (glide.sc.checkout.twostep = false). 

  • To make the variables public, add Write, Read, and Create roles to the related list.

 

Additional Information


 

This should make most variables public. There are a few exceptions.

  1. Checkbox cannot be made public. Instead, use a Yes/No variable or Lookup Select Box with two options.
  2. 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.

 

Warning: As a side effect of making service catalog public, if the session of an authenticated user expires before checkout, the subsequent request and requested item records are created with user fields as "Guest".

Article Information

Last Updated:2018-11-16 00:46:32
Published:2018-04-11
public_cms.pngvariable_roles.png