Hide UI Actions for Business stakeholder role

Mujahid Sharief
Tera Contributor

How to hide UI Actions available on Incident & Request form for Business stakeholder role?
we have enabled the business stake holder role in snow and added a user to it, but few custom ui
actions are available for this role and respective user. Kindly please advise best way to hide the same
via script or any other best practice.

detailed information can help.!

1 ACCEPTED SOLUTION

that's strange. Is it in classic view or in workspace?

Could you post screenshot of one ui actions where condition is not working?

View solution in original post

7 REPLIES 7

SanjivMeher
Kilo Patron
Kilo Patron

You need to add roles to your custom UI actions so that only the required roles have access to the UI actions.

SanjivMeher_0-1711570074395.png

 


Please mark this response as correct or helpful if it assisted you with your question.

This is for visibility i believe, my requirement is to hide this UI action on Incident form for a role.
please advise

nataliya_b
Tera Guru

have you tried to put this: !gs.hasRole(yourRole) in UI action condition?

Mujahid Sharief
Tera Contributor

Tried this but still the UI action is visible. We need hide the ui action for the role