logged in user roles in UI policy

ryadavalli
Tera Expert

I have to check If the logged in person is different than approver in an UI policy, how can I achieve this ?

6 REPLIES 6

Hi Ravali,



You can use script box "Execute if true" in UI policy(by checking "Run Script") to make a role check and then set it to mandatory.


so when ever UI policy executes this script will be triggered


Hi Ravali,



The short answer is no. You have to define client script for that role check.


GlideUser (g user) - ServiceNow Wiki