How to restrict a custom created view to only system admins and members of a single assignment group

Arka Banerjee
Kilo Guru

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!

 

@Ankur Bawiskar 

11 REPLIES 11

Ankit J
Tera Contributor

@Arka Banerjee 

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

 

Ankit J
Tera Contributor

@Arka Banerjee 

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