DHIS Connector Module - User Access Controlling

I have also updated these 3 pages.

  1. Automation
  2. Run Reports
  3. Failed Data

Automation UI

There are 3 privileges related to Automation UI.

  1. View Automation
  2. Manage Automation
  3. Run Automation

This is how the UI will work after adding the module privileges.

  • Users with View Automation privilege can only see the automated mappings. Also the automation toggle is visible.

  • Users with Run Automation privilege can see the mappings. And also can run or rerun the mappings. (But the user should have Manage Global Properties in order to run/rerun)

  • Users with Manage Automation privilege can see the mappings. And also can add new mappings to automation and toggle the automation. (But the user should have Manage Global Properties in order to run/rerun or toggle automation)

  • Users with Manage Automation and Run Automation privileges or all 3 privileges have full access to the Automation

  • Users who doesn’t have any of these 3 privileges can’t access or see the link in the navbar

Run Reports UI

There are 1 privilege related to Run Reports UI.

  1. Run Reports
  • Users with the Run Reports privilege can run reports and push data. (User may need Get Identifier Types, Get Locations, Get Users privileges to load the locations and reports)

  • Users who doesn’t have the privileges can’t access or see the link in the navbar

Failed Data UI

There are 1 privilege related to Failed Data UI.

  1. Run Failed Data
  • Users with the Run Failed Data privilege can push failed data.
  • Users who doesn’t have the privileges can’t access or see the link in the navbar

I have sent the draft Pull request for this feature.

Please review and merge.

cc: @jayasanka @akshika47

1 Like