Hi dear Community!
(read in commercial tone)
Are you tired of spending hours in sharing permissions to tables so that people can see them in a dashboard?
Have you ever screwed a dashboard because it has resources with different permissions? [DHIS2-6556] Error in Dashboard when different access rights between dashboard and objects - DHIS 2 JIRA
Here’s a script for you!
(stop commercial tone)
DHIS2 functionality we are looking for: [DHIS2-101] Cascading sharing for dashboards to items - DHIS 2 JIRA
In the meantime this is developed, we have created a script. This script will allow you to cascade all dashboard sharing permissions to the resources that are contained in it. It does not overwrite those permissions, it only adds their parent sharing permissions to the already existing child permissions. You can directly hardcode your URL or create a configuration file with the URLs and connections.
Note that this script was for internal use to temporarily overcome a missing functionallity, so it is not intended to be well formatted or documented or used as an application, if you have any doubt you can reply in here.
dashboard-sharing-cascading.docx (24.5 KB)