How to prevent a user from creating a dashboard from homepage based on roles ?

Community Alums
Not applicable

Hi Team ,

Is there anyway we can prevent the user from creating a dashboard version of homepage ?

Regards,

Ankitha

12 REPLIES 12

How were you able to hide the two options with a UI script? I just can't figure out how to do it.

below is the script that I have used

 

var location = window.location.href;
	
	if(location.indexOf("home.do")!=-1 && location.indexOf("_home.do")==-1){
		
		if(!g_user.hasRole('admin')){
			jQuery('div.navbar-header > a').css('display', 'none'); //hide the Open Dashboard Version button next to the Dashboard Selector
			jQuery('#createDashboardVersionMenu').css('display', 'none'); //hide the Create Dashboard Version button in the Homepage Settings
		}
	}

I have tried the above script.But still i(ITIL USERS) can see create dashboard version button under homepage setting gear icon.Did anybody tried it??Will this work