hide application module based on the members of the group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019 04:59 PM
Hi community,
i was wondering if there is any way to put a restriction that, if you are member of a group, you aren't going to be able to see the application module.
I know that you can use roles to restrict access, but i want to make it based on the user (if is member of an specific group)
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019 10:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2019 03:40 PM
HI Sergio
Filter will not work in your case, this will just set the filter on the records.Filter option will come only when your module type is - "list of records".You want to set the visibility of the module. For this you can follow below two approach
1. Write a before query business rule on the module table(sys_app_module). This will hide the module from all except member of the required group.
if(!gs.getUser().isMemberOf('GROUP NAME'))
current.addQuery('title','!=','NAME OF YOUR MODULE NAME');
2. Create a role , add this role to your group and add this role in the module. So user having this role will be able to see the module and as your required group contains this role so everyone in that group will be able to see the module
As a best approach , I will suggest to follow the point 2.
-harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2020 06:45 AM
Hi,
It does make sense. But it doesn't works for me. Is there anything that should be taken care of before doing the scripting part?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 03:16 PM
HI Jaseem
There is nothing else that you need to setup. Which steps you are following 1 or 2?Please share your steps what you are doing.
-Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 08:55 PM
Thanks for the help