Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create users on the OpenSRP Web #960

Open
Naima-Bashir opened this issue Jul 17, 2023 · 6 comments
Open

How to create users on the OpenSRP Web #960

Naima-Bashir opened this issue Jul 17, 2023 · 6 comments
Labels
instructions Tech Partner (SID Team) This tag will be used to track all the support issues created by our tech partners (SID Team)

Comments

@Naima-Bashir
Copy link
Collaborator

Naima-Bashir commented Jul 17, 2023

Affected App or Server Version

Latest apk

What kind of support do you need?

  1. Create a user
  2. Ensure the user has a Keycloak Group assigned to them. This means that the user can either be a provider or a superuser.
  3. Create a team
  4. Assign that user to the team
  5. Go to location units
  6. Add a service point
  7. Ensure the newly created service point has a hierarchy and a parent drop down e.g for villagea user ; this is how it looks: Indonesia- NTB-Lombok Barat- Puskesmas A- Village A
  8. The newly created service point can be Indonesia- NTB- Lombok Barat-Pusmeskas C
  9. Ensure the unit group says health facility
  10. Click save on the service point
  11. Click on team assignment next
  12. Locate your newly created service point e.g under NTB-Lombok Barat
  13. Add your team to your newly created location

What is the acceptance criteria for your support request?

Create new users
Clear cache and data on the app on your phone
login to the app

Relevant Information

No response

@Naima-Bashir Naima-Bashir added the Tech Partner (SID Team) This tag will be used to track all the support issues created by our tech partners (SID Team) label Jul 17, 2023
@mergygayatri
Copy link

mergygayatri commented Aug 11, 2023

Hi @Naima-Bashir. I and my research assistant have checked the assignments on the development OpenSRP Web. We created new usernames: 1 Puskesmas (puskesmas buah) and 2 villages (village mangga & village sirsak).

  1. We experienced sync failure only in Puskesmas.
  2. desa can see patients in another desa; Desa mangga can see desa sirsak. This is not as expected. Each desa should not be able to see patients in another desa, e.g. Desa magga can only see patients in desa mangga.

We experienced the same issues during your leave. Could you please also confirm with @AngelaKabari?
We cannot continue to check the production OpenSRP Web because we need to solve this hierarchy issue in advance.

@Naima-Bashir
Copy link
Collaborator Author

Hi @mergygayatri If you look at the screenshot below, you will notice Desa Sirsak is assigned to 2 locations:

  1. Puskesmas Buah
  2. Desa Sirsak

This means that Desa Sirsak has a higher hierarchy and can therefore see details for Desa Mangga (It's assigned to a health facility which a higher location.) Please ensure that the village locations are only assigned to their level so that they can only see their village and not other villages.

image

@mergygayatri
Copy link

mergygayatri commented Aug 11, 2023

Hi @Naima-Bashir. Thank you for checking.
We checked it again and created new credentials.

  1. Puskesmas vehicle
  2. Village plane
  3. Village bike

Yes, village plane only can see patients in village plane. So does the village bike. However, we cannot check the Puskesmas vehicle because the sync keeps failing. I created a patient in Puskesmas vehicle but it was lost because of sync failure. I would like to make sure that Puskesmas see all the patients (patients in Puskesmas + all patients in the catchment villages). You can see the video all of the steps I did here.

@Naima-Bashir
Copy link
Collaborator Author

Hi @mergygayatri

The sync is failing because server is throwing following error while syncing with Puskesmas Vehicle
{"message":"FORBIDDEN","status":"403 FORBIDDEN","data":null,"success":false}
We need to confirm when does this error occur. Maybe the user might might not have been granted the correct privileges.Did the user Puskesmas Vehicle have super user access or?

@mergygayatri
Copy link

Hi @Naima-Bashir, thank you. Just to make sure, how to check the user Puskesmas vehicle has super user access?

@Naima-Bashir
Copy link
Collaborator Author

Hi @mergygayatri here is a screenshot showing the Keycloak users groups. The user Puskesmas should have a Provider role in order to ensure the sync works as expected.
Screenshot from 2023-08-11 12-03-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
instructions Tech Partner (SID Team) This tag will be used to track all the support issues created by our tech partners (SID Team)
Projects
None yet
Development

No branches or pull requests

2 participants