- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 06:14 AM
Hi,
When I'm checking as admin it's working fine, when I impersonate a user and check it getting the below error when clicking on the UI Action
Here is the Script
UI action Script
function showCatalogPopUp() {
var include = new GlideAjax('Instance_Name_Property_call');
include.addParam('sysparm_name', "getSysProperty");
include.getXMLAnswer(property);
function property(answer) {
var evn = answer;
var sys_inc = 'https://' + evn + '.service-now.com/AskIT?id=nr_sc_cat_item&sys_id=7841d2891b09ca94145321b6b04bcb57&sys_inc=' + g_form.getUniqueValue();
var messageModal = new GlideModal('x_tapbs_paperless_TAK_Paperless Workflow Catalog popup');
messageModal.setSize(800);
messageModal.setTitle("Sign PDF");
messageModal.setPreference('sysparm_inc', sys_inc);
messageModal.render();
}
}
Script Include
var Instance_Name_Property_call = Class.create();
Instance_Name_Property_call.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
getSysProperty: function() {
var property = gs.getProperty('instance_name');
return property;
},
type: 'Instance_Name_Property_call'
});
Thanks in advance,
Chaitanya
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 06:19 AM
@Madala Chaitany This looks like an ACL issue to me. Please use access analyzer to check if the user has the right role to access the page.
nr_sc_cat_item
Also, check if the client callable script include has correct ACLs and read roles assigned so that user can access it.
Instance_Name_Property_call
Please refer to https://docs.servicenow.com/bundle/xanadu-platform-security/page/integrate/identity/concept/explore-... to know more about access analyser.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 06:19 AM
@Madala Chaitany This looks like an ACL issue to me. Please use access analyzer to check if the user has the right role to access the page.
nr_sc_cat_item
Also, check if the client callable script include has correct ACLs and read roles assigned so that user can access it.
Instance_Name_Property_call
Please refer to https://docs.servicenow.com/bundle/xanadu-platform-security/page/integrate/identity/concept/explore-... to know more about access analyser.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 06:50 AM
@Sandeep Rajput Thank You It have worked