Need to check user group "Role" in UI Policy

subashds6515
Tera Contributor

By using UI policy , i'm going to find  the user 'group role . if the group role  is itil_admin , will make the field editable for the particular user.

23 REPLIES 23

This is my result page, I am trying to make one field editable for "itil_admin" based on your solution.

but its not working for me, what I am missing?

MassSubash_0-1683259259548.png

MassSubash_1-1683259396875.pngMassSubash_2-1683259411904.png

 

 

 

UI Action when to apply.JPGUI Action script update.JPGUI Policy Action update.JPG

This is working fine. I have just tested it. 

In When to apply-

select state is closed

In script

gs.hasrole('itil_admin');

In Actions- select the field you want the ITIL admin to edit and set read only as false. 

 

it will work, i have tested it. 

 

please let me know once you try it.

 

use thisuse thiswrite thiswrite thiscreate thiscreate this

@MassSubash @subashds6515  did you try the steps i shared? It will work , i have checked it and it worked for me.