How to hide the applications which are on left side navigation bar for a particular group or role based

kirankumarboyin
Mega Contributor

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.

find_real_file.png

Regards,

Kiran

8 REPLIES 8

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

Sharique Azim
Mega Sage

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

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

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();


}