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

@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