A non admin user has created a dashboard and shares it with another user,. the other is able to see the dashboard name but when he clicks on it, he cannot see the data, He is getting an error that “(User: XXXXXX is not allowed to view org unit: gAl03JB2KF7). .
Both users have “dashboard app” ticked as part of their user role.
The data is drawn from org units that the user is assigned to. I have selected org units for both capture and analyze in user configuration app.
Screenshot from user configuration: Data is entered at facility level but the user works at a district level (and marked the district as data capture org unit),
The ID shown in the error corresponds to a health facility, As I marked the district as data capture org unit and the referred health facility is below district, shouldn’t the user be able to see the data from all facilities below district?
Are we missing any steps in terms of configuration?
Yes, I used the browser Cache Cleaner but it did not solve the problem… The DHIS 2 version is 2.36.6.
What is strange is that each user he has shared the dashboard with has the same error. He has shared the dashboard with three other users; all of them have the same error.
If you look at the API URLs and can confirm that all users are assigned the OUs then please see if there are any errors in the Catalina.out log and if there are, please share it (without the sensitive information) here or in a PM.
I have come to realize that the following ID belongs to an org unit to which the USERS were not assigned. Why this happens and how can I solve the problem?
Thank you @fernando! Is this organization unit ’ gAl03JB2KF7’ in the visualization? If it it is then the users must be assigned this organization unit to view the visualization. To solve this issue make sure that the visualization is only for the org units that the users have been assigned.
If it’s not in the visualization then maybe you should try Data Administration → Maintenance and select the following three:
It is not in the visualization; and it is not in the capture either, so users shouldn’t get the error. The users are assigned to GAZA and MANICA (with id="OSZ7WrQGw0w and id="Be0ZGIThdI5) and not SOFALA, But the error is saying that they are not allowed to view org unit gAl03JB2KF7 (SOFALA)
NB: It is pulling an org unit that they were not assigned to.
@fernando this probably has to do with your database so for further investigation, it might be required to get a copy of the database to the coreteam. Please PM me if that is possible. Either way I’ll still ask for support to make sure whether we’ll need a copy or not. Thanks!