Notifications

151 views

Symptoms


User with "snc_read_only" role is unable to place ServiceNow requests.

Error Shown:  'You cannot check out with an empty cart!'

Release


Jakarta

Cause


This is expected behavior as user's roles (read_only) prevents write access to the instance as the request record is not created and hence below error is shown:

Error:  'You cannot check out with an empty cart!'

Resolution


 Some tables can be exempted from begin read only by adding the tables name to property: glide.security.snc_read_only_role.tables.exempt_write
https://docs.servicenow.com/bundle/jakarta-platform-administration/page/administer/user-administration/concept/c_ReadOnlyRole.html

Below tables needs to added to generate request, RITM and to start a workflow. 

1) glide.security.snc_read_only_role.tables.exempt_create 
Value = sys_user_session, sysevent, syslog, syslog_transaction, sys_user_preference, sys_ui_list, sys_ui_list_element, sys_db_cache, user_multifactor_auth, sc_cart, sc_req_item, sc_request, sc_cart_item, sc_item_option_mtom, wf_context, wf_workflow_version, wf_workflow, wf_variable, wf_stage, wf_activity, wf_executing, wf_log, sys_mutex, wf_history, wf_transition_history, wf_command, sys_attachment, sys_number_counter, task, sc_item_option, sc_task,  sys_trigger

2)glide.security.snc_read_only_role.tables.exempt_write 
Value= sys_user_session, sysevent, syslog, syslog_transaction, sys_user_preference, sys_ui_list, sys_ui_list_element, sys_db_cache, user_multifactor_auth, sc_cart, sc_req_item, sc_request, sc_cart_item, sc_item_option_mtom, wf_context, wf_workflow_version, wf_workflow, wf_variable, wf_stage, wf_activity, wf_executing, wf_log, sys_mutex, wf_history, wf_transition_history, wf_command, sys_attachment, sys_number_counter, task, sc_item_option, sc_task,  sys_trigger

3)glide.security.snc_read_only_role.tables.exempt_delete 
Value =sys_user_preference, sys_ui_list, sys_ui_list_element, sys_db_cache, user_multifactor_auth, sc_cart_item, sc_item_option_mtom

 

Article Information

Last Updated:2018-09-04 06:31:35
Published:2018-09-04