How to hide the applications which are on left side navigation bar for a particular group or role based
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2018 09:43 AM
Hi Team,
I am having the below requirement for multi tenant environment.
How to hide the applications which are on left side navigation bar for a particular group or role based users.
Let say I want to hide the all applications except cir data for particular group or role based users.
Please find the screen shot
What is the best way I can do this.
Regards,
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2018 03:23 AM
Hi Midun,
Thanks for the response now. Say I am 20 applications out of one application I want to show the person who is having role abc. As you suggested one I have to go for every category and specifies the role .I am looking for any script kind of thing, no need to touch the applications If any new applications added to the system as it is multi tenant environement.
Regards,
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2018 03:16 AM
You can click on edit module icon that comes up on hover ,and add the roles to the module to whom you want to make available
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2018 03:24 AM
Hi Shariq,
Thanks for the response now. Say I am 20 applications out of one application I want to show the person who is having role abc. As you suggested one I have to go for every category and specifies the role .I am looking for any script kind of thing, no need to touch the applications If any new applications added to the system as it is multi tenant environement.
Regards,
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2018 04:06 AM
Interesting,
ok so you can try this untested script maybe:
var gr= new GlideRecord('sys_app_application_list');
gr.addQuery('title','IN','list of applications');
gr.setLimit(20);
gr.query();
while(gr.next()){
var rl =gr.roles.getDisplayValue();
var rle= rl.split(',');
var arr =[];
for(var i=0; i<rle.length; i++){
arr.push(rle[i]);
}
arr.push('role you want to add');
// arr.push('role2 you want to add');
gr.roles= '';
gr.roles.setDisplayValue(arr.toString());
gr.update();
}