Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to apply ACL on UI action buttons?

tejasweenipradh
Kilo Contributor

I have created IN progress button using UI action which changes the new state to IN progress.

I want to apply ACL on the UI action button which I have created. Like I have created IN progress button on the incident form. and Now I have to create an ACL so that button will only visible to admins not to normal users which don't have admin access.

1 ACCEPTED SOLUTION

RaghavSh
Mega Patron

In condition field of UI action add condition:

gs.hasRole('admin');

ACL is not required.


Raghav
MVP 2023
LinkedIn

View solution in original post

2 REPLIES 2

RaghavSh
Mega Patron

In condition field of UI action add condition:

gs.hasRole('admin');

ACL is not required.


Raghav
MVP 2023
LinkedIn

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to use UI action conditions to show, hide UI actions.

 

 

Regards,

Sachin