Script include returning null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 10:42 PM
When we impersonate end users with snc_internal role , script include returning null, else it is working fine
Please help us here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 12:12 AM
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 👍✔️
Anvesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 12:23 AM
@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