how to exclude related list action in CSM workspace from specific role

Alon Grod
Tera Expert

Hi,

how to exclude related list action in CSM workspace from specific role, for example 'itil' role:

Screenshot 2026-02-25 115155.png

1 ACCEPTED SOLUTION

@Alon Grod 

admin inherits all role so it will hide as that condition will be false for admin user

try this

!gs.hasRole('elcam_user') || gs.hasRole('admin')

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

20 REPLIES 20

Dr Atul G- LNG
Tera Patron

Related list actions can be configured from the List Control.

 

 

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

@Dr Atul G- LNG 

@Alon Grod requires this for workspace.

The screenshots you shared is for native (List Control) which won't work & affect the workspace.

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

If we change the view in the native UI, we can verify this. I understand these are not primarily UI Actions, but the screenshots provide a helpful reference.”

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

@Dr Atul G- LNG 

I am mentioning that the screenshots might confuse as those are purely for native but requirement is for workspace.

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