How to hide UI action for a specific group?

GP001
Tera Contributor

Hello Community,

I have a requirement as below :

I want to hide a UI action on change record table for a specific group.

Thank you in advance.

1 ACCEPTED SOLUTION

PPPanchal
Mega Sage

Hello @GP001,

Add condition like below:

 

!(gs.getUser().isMemberOf('GROUP_NAME'))

 

Unique45_0-1711980654103.png

 

Please mark correct/helpful if this helps you!
Thanks,
Pratiksha
ServiceNow Rising Start 2025

View solution in original post

3 REPLIES 3

chaithu1489
Kilo Sage

It is easy to show only some roles by using roles sections. Which will restrict the UI action to this group if the group does not have the role.

 

Else, add in the condition !gs.getUser().isMemberOf(<group name>)

PPPanchal
Mega Sage

Hello @GP001,

Add condition like below:

 

!(gs.getUser().isMemberOf('GROUP_NAME'))

 

Unique45_0-1711980654103.png

 

Please mark correct/helpful if this helps you!
Thanks,
Pratiksha
ServiceNow Rising Start 2025

GP001
Tera Contributor

Thanks a lot.