Example of dashboard report: Using policySituation for report

Last modified 18 Mar 2021 13:46 +01:00

Please see Dashboard configuration for basic information about configuration variables.


Administrator needs display all users which have value of description is 'Created by mP'


As first we need configure policy rule. In this Example we add next snippet of configuration to our system configuration in Midpoint.

Snippet of system configuration
                        <q:value>Created by midPoint</q:value>

Now, we have to recompute all users in order to set our policySituation for them, when they meet the criteria of our filter. In this situation we can use jasper report in Midpoint and modify search query base-on our policySituation or use dashboard reports with object collection, in this example we use dashboard report. We need configure object collection for users with policySituation.

Object collection
<objectCollection oid="72b1f98e-f587-4b9f-b92b-72e251dbb266">
    <name>Users with policySituation</name>

When we have object collection, then import Dashboard object with widget for our object collection.

<dashboard oid="72b1f98e-f587-4b9f-b92b-72e251da3456">
        <label>Users created by mP dashboard</label>
            <label>Users created by mP</label>
                <cssClass>fa fa-user</cssClass>
                <collectionRef oid="72b1f98e-f587-4b9f-b92b-72e251dbb266" type="ObjectCollectionType"/>

After successful import of dashboard object and reload of page you can see dashboard in menu Dashboards > Users created by mP dashboard.

We want report with table of users created by Midpoint, so we import dashboard report.

    <name>Users created by mP dashboard report</name>
        <dashboardRef oid="72b1f98e-f587-4b9f-b92b-72e251da3456" type="DashboardType"/>

Now we can run report in report menu, show task, and download report. Every report from dashboard is in HTML format.


image2020 5 4 13 34 2