Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

gs.hasRole() second parameter

Manal  AQUIL
Tera Contributor

Hi Team,

 

I just came across create ACL on kb_feedback_task where I found below script :

gs.hasRole("itil", "sn_incident_write");
 
Please help me understand what the second parameter implies to .
 
Thanks,
Manal 
1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage

Hi @Manal Aquil ,

 

Second parameter is nothing but the role only in gs.hasRole('role1','role2','role3') u can provide multiple roles by adding comma n validate.

 

Thanks,

Danish

View solution in original post

3 REPLIES 3

Danish Bhairag2
Tera Sage

Hi @Manal Aquil ,

 

Second parameter is nothing but the role only in gs.hasRole('role1','role2','role3') u can provide multiple roles by adding comma n validate.

 

Thanks,

Danish

Manal  AQUIL
Tera Contributor

Thanks, it's helpful