Required permissions for server script includes ?

JG6
Kilo Guru

Hello Community,

I've got a script include which is called from a client ui script. Which is called in a catalog item. All put into a scoped application. 

The problem is that this only works when the current user has the role admin or snc_internal. Which in my case is too much privileges for the users it is destined for. The server include script is set to be accessible from all application scopes.

My question is if there are fine-grained roles which can be used instead ?

Thx !

 

1 ACCEPTED SOLUTION

It works, but I had to get the roles from somewhere else.

isPublic: function(){
  return gs.getUser().roles.indexOf('role name') > -1;
}

View solution in original post

7 REPLIES 7

Glad it worked. 

Did you accidently mark your answer as correct ?

 

 

Pranesh072
Mega Sage
Mega Sage

To enable external users to allow access to script include, please add a Client-callable script include ACL rule.

Type: client_callable_script_include  

Add <Name of the Script Include to provide access> in Name,  

Role: snc_external

 

KB0639035

PragnaR
Tera Contributor

Can you tell the steps and the permission required, if I want the ScripInclude to be available for all users in Scoped Application.