Client Script is not working for all roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2024 03:14 PM - edited 01-14-2024 04:21 PM
Hi All,
I have the itil access when i select this Roles it gives "No Match Found" .
Note : it is working perfectly for admin access.
I am getting another error as well when i select Roles
Below is the Client Script written on Variable Set
Client Script
*************
CustomRoleOptionsUtils.prototype = Object.extendsObject(AbstractAjaxProcessor, {
getRoles: function(){
var env = this.getParameter('sysparm_env');
gs.print("Environment"+env);
var roles;
if(env == 'test'){
roles = gs.getProperty("custom.test_environment.roles");
} else if(env == 'beta'){
roles = gs.getProperty("custom.beta_environment.roles");
} else if(env == 'development'){
roles = gs.getProperty("custom.dev_environment.roles");
}
return roles;
},
type: 'CustomRoleOptionsUtils'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2024 04:26 PM - edited 01-14-2024 04:26 PM
@Saib1 : All the client callable script includes are secured by ACL’s. Based on your explanation as it’s working for admins please check if there was an client callable script include ACL for this that’s blocking for other user.
please check for ACL’s of below type:
- Type: client_callable_script_include
- Add <Name of the Script Include to provide access> in Name,
- Roles: To check
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.