logged in user roles in UI policy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 12:41 PM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 02:25 PM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 02:20 PM
Hi Ravali,
The short answer is no. You have to define client script for that role check.
GlideUser (g user) - ServiceNow Wiki