How to restrict a custom created view to only system admins and members of a single assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 09:18 AM
Hi All,
I have created a custom view for a custom module list layout. I want to restrict that view to only be visible for admins and members of a particular assignment group. Also I would like to make that view as default view for members of that particular assignment group. Could you please help me achive this. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 09:17 PM
Please check the solution shared by @Chaitanya ILCR. It should work.
Also, use the group sys id rather than group name in the below script
gs.getUser().isMemberOf("<group_sys_id>")
Regards,
Ankit jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 09:39 PM
Check the solution shared by @Chaitanya ILCR. It should work.
Also, use the group id rather than group name in the below code
gs.getUser().isMemberOf("<group_sys_id>").
Regards,
Ankit Jain