UI Action condition is not working

aagman4
Tera Contributor

System Property - 

aagman4_0-1711455845483.png

UI Action Condition - 

aagman4_1-1711455905522.png

I wanted to show this UI Action for both groups Group - 1 and Group - 2 but it's not visible to any group.

Can someone assist me on this?

 

Thanks!

6 REPLIES 6

Sagar Pagar
Tera Patron

Hi @aagman4,

 

You need to create separate properties for each group and try the below sample condition -

 

current.state != 3 && gs.getUser().isMemberOf(gs.getProperty('sn_audit.group1')) || gs.getUser().isMemberOf(gs.getProperty('sn_audit.group2'))

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Is there a way I can do this with a single system property?