dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23332
Automatically mass-generate dhis2 usernames and passwords
In case you need to expedite creation of thousands of users and passwords
the following classes might help. In essence, all of user creation steps
can be done by sql. However, password hash is a bit tricky in dhis2 when it
depends on Spring Security.
https://dl.dropboxusercontent.com/u/63702128/dhis2%20user%20generator/GeneratePassword.java
https://dl.dropboxusercontent.com/u/63702128/dhis2%20user%20generator/RandomGenerator.java
After having a list of username and password pairs you can use sql to fill
in users and userinfo tables, plus other germane tables for assigning
orgunit and roles.
Thanh
Follow ups