How to set the UI Action to be visible to the specific user?

Yesh
Tera Contributor

Hi guys,

I have requirement like the UI Action is to be visible to the user who got assigned to the particular task. If I have a incident table and i have assigned a particular incident to one user to take an action on it, then that particular user can able to see the Approve UI Action. No other users can see that ui action. How to achieve this?

Thanks

1 ACCEPTED SOLUTION

Voona Rohila
Kilo Patron
Kilo Patron

Hi yesh

In the condition of your UI Action, you can use below logic 

current.assigned_to == gs.getUserID()

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

5 REPLIES 5

AnirudhKumar
Mega Sage
Mega Sage

In the UI Action condition field use the below code:

current.assigned_to == gs.getUserID()

Voona Rohila
Kilo Patron
Kilo Patron

Hi yesh

In the condition of your UI Action, you can use below logic 

current.assigned_to == gs.getUserID()

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Should be simple enough.

Members have already shared approach.

Let us know if you are stuck

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

 

What if I dont want to show the perticuler UI action to assigned to or additional assignee