How to hide ui button on particular role

AJAYKUMAR G
Tera Contributor

How to hide ui button on particular role like whose having itil can see the button other wise can not see the button.

1 ACCEPTED SOLUTION

Amit Pandey
Kilo Sage

Hi @AJAYKUMAR G 

 

In the condition field, you can write something like this-

!gs.hasRole('sn_customerservice.customer') && gs.hasRole('itil') && current.isValidRecord();

Regards,

Amit

 

View solution in original post

4 REPLIES 4

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

The ui actions have a requires role section, add the role you want to show this ui action to and save.

AnuragTripathi_0-1711467371670.png

 

-Anurag

I tried but it is not working.

This is the way it should work, if this is not working then you need a HI Ticket.

 

How are you testing ?

-Anurag

Amit Pandey
Kilo Sage

Hi @AJAYKUMAR G 

 

In the condition field, you can write something like this-

!gs.hasRole('sn_customerservice.customer') && gs.hasRole('itil') && current.isValidRecord();

Regards,

Amit