Set Dashboard Owner Group as Mandatory

hoa nguyen
Tera Contributor
Hi Folks,
I'm looking for guidance on whether it's possible to make the Owner Group field mandatory for dashboards.
As part of our dashboard governance efforts, we'd like to require users to complete this field to ensure ownership is clearly defined. Has anyone implemented something similar or have any suggestions?
Thanks in advance for your help.
3 REPLIES 3

BharatC
Giga Guru

Hello @hoa nguyen 

 

There is no out of the box configuration option available to make mandatory on owner field in platform analytics dashboard.

But you can create BR on "pa_dashboards" table

 

OnBefore BR

Check Insert and Update, with filter condition as "Owner is empty".

 

 

 

Add below script in Advanced section:

 

gs.addErrorMessage("Owner group is mandatory: Pls add in owner of dashboard");

current.setAbortAction(true);

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards

Bharat Chavan

 

 

 

 

 

Hi Bharat,
Thank you for your assistance. The dashboards have already been migrated to Platform Analytics Experience, and the pa_dashboards table is no longer used. Dashboard records are now stored in the par_dashboard table.
Given that the schema of par_dashboard is substantially different from pa_dashboards, the BR logic appears incompatible with the current implementation.

Hello @hoa nguyen 

 

owner field is stored in "par_dashboard_permission" table .

Its the group field on the record where owner is checked

It seems it tied to dashboard by dashboard field.

 

 

BharatC_1-1793615532264.png

 

write before BR on this par_dashboard_permission .

insert and update checked.

 

if(!current.getValue('group')

{

gs.addErrorMessage("Owner group is mandatory: Pls add in owner of dashboard");

current.setAbortAction(true);

 

}

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards

Bharat Chavan