Hi everyone!
DHIS 2.40.3
Usually I assigne users to userGroups in the BIF template, like this:
But sometimes after bulk load user groups are still empty…
In this scenario when I try to use BIF template again, I get an error:
Then, I tried to use a method which I learned about from @Ulanbek (for bulk updating passwords)
So I Used the Postman app to get the list of users for a specific region with userGroup field:
https://{{URL}}/api/users.json?paging=false &filter=organisationUnits.path:like:UCh8L8MFPQr&fields=,sharing,userCredentials[,!access,!lastUpdatedBy,!sharing],userGroups
Then I used find and replace function to update all users with user group IDs,
like this:
Then I saved the updated Json file and tried to use import/export APP:
This is DRY RUN results:
With Import I get the error:
This is how it looks like in my Json file:
I must be doing smth wrong.
What is the best way to bulk update user groups?
2 posts - 2 participants