Script include returning null

Nagasri
Tera Expert

When we impersonate end users with snc_internal role , script include returning null, else it is working fine

 

Nagasri_0-1706164951963.png

Please help us here

 

6 REPLIES 6

AnveshKumar M
Tera Sage
Tera Sage

Hi @Nagasri 

You can allow the access using an ACL as suggested by @Tai Vu . If you want to make this client callable script include should be accessible by any user, you can add another method to your script include, i.e. isPublic.

 

/**
* Allow public access to this Script Include
*/
isPublic: function() {
	return true;
}

 

For example,

 

var SampleCCSI = Class.create();
SampleCCSI.prototype = Object.extendsObject(AbstractAjaxProcessor, {
	method1: function() {
		//Do somethint
	},

	method2: function(){
		//Do something
	},

	/**
	 * Prevent public access to this processor
	 */
	isPublic: function() {
		return false;
	},
	type: 'SampleCCSI'
});

 

Please mark my answer helpful and accept as a solution if it helped 👍✔️

Thanks,
Anvesh

Sandeep Rajput
Tera Patron
Tera Patron

@Nagasri Since this issue is working fine for the admin user and occurring for the user with snc_internal role only. You can check the following aspects.

1. Check if the user has access to sys_user table via ACL

2. Check if the user has access to sys_user_grmember via ACL

3. Check if the user with snc_external role has the execute operation permisssion via ACL on YaraGlobalGetGroupUserDetails script include

4. Check if there is any Query business rule defined on sys_user and sys_user_grmember tables which is filtering the records for users with only snc_internal role