- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 07:10 AM
Hello Community,
I want to remove the personalized list (Cog icon) from some tables. To do this, I modified list_mechanic2 macro and added the following line: <j:if test="${ListProperties.getTable() != 'incident'}">
With this change, the Cog icon was successfully removed for the 'incident' table. However, now I (as an admin) am also unable to manage the list.
How can I keep the Cog icon hidden for users, but still allow access for admins?
Best Regards,
Beyza
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 07:11 AM - edited 05-14-2025 07:14 AM
update as this to show for admin
<j:if test="${ListProperties.getTable() != 'incident'&& !gs.hasRole('admin')}">
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 07:11 AM - edited 05-14-2025 07:14 AM
update as this to show for admin
<j:if test="${ListProperties.getTable() != 'incident'&& !gs.hasRole('admin')}">
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 07:18 AM
can you share where did you add that?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 08:00 AM
Thank you Ankur. it worked