how to hide create new option in Platform Analytics dashboard

直井怜
Tera Contributor

I would like to hide the Create New option on the Platform Analytics dashboard.
If anyone knows how to do this, please let me know.

Please help. Thank you.😭

 

_0-1733987277327.png

 

1 ACCEPTED SOLUTION

Muralidharan BS
Mega Sage

In the UI Builder, you have an option to hide the create new button. You can also make it visible based on roles. 

 

MuralidharanBS_0-1733989434259.png

 

based on roles

click on data option, then select page prop > Session >user > roles and select the role needed

MuralidharanBS_1-1733989705178.png

 

 

View solution in original post

9 REPLIES 9

Also the same data-option menu seems not available in washington:

lallenstein_0-1744636921263.png

 

Thanks
Please ignore

l-allenstein
Tera Expert

You can hide the "Create Dashboard Button" in Platform Analytics "Dashbaord Library" for specific roles by following these steps:

1: Go to UI-Builder to Platform Analyitcs, Dashbaord Library. De-activate the "Display all Dashbaords" option.

2: Click on the "Bind data or use Script" option for the "Hide create Dashboard" option.

lallenstein_0-1746631529088.png

3: use script to define and enter following script:

 

lallenstein_1-1746631539037.png

 

/**
* @Param {params} params
* @Param {api} params.api
* @Param {TransformApiHelpers} params.helpers
*/
function evaluateProperty({api, helpers}) {
let user_roles = api.context.session.user.roles;
// only visible for users with role admin and report
return !(user_roles.includes("admin") || user_roles.includes("reporting"));
}

Besides in the Dashboard-library, there is the option to create a dashbaord in the "Dashbaords" page. Unfortunately i found no solution at the moment to hide the option there, due to the UI-Builder is protected/read only for that page.

 

Alpa82
Tera Guru

Hello, is it possible to hide the Create new or Duplicate Platform analytics dashboard just for a specific dashboard or are the changes applied to all dashboards?

thank you

MuhammadS594393
Mega Contributor

Please ignore this