← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] Creation of bulk user.

 

Hi,

it is correct that missing UIDs will be generated on system startup.

I think what is being referred to here is dhis UID and not an UUID. There
are ways to generate dhis UIDs through the web api but it's just much
simpler to restart tomcat.

regards,

Lars



On Wed, May 7, 2014 at 10:19 AM, Knut Staring <knutst@xxxxxxxxx> wrote:

> The easiest is to restart DHIS2 (Tomcat)
>
>
> On Wed, May 7, 2014 at 10:14 AM, Jason Pickering <
> jason.p.pickering@xxxxxxxxx> wrote:
>
>> If it is blank then the database will regenerate it automatically when
>> you restart (I think. This is what happens with other objects which have a
>> uuid). That is the easiest way.
>>
>> If you are preparing SQL for injection of the users and you want to
>> pregenerate them, you can use which ever tool you are using to generate the
>> SQL to provide you UUIDs as well. Postgresql's uuid-ossp package, R's
>> "uuid" package, or the system command "uuid" on Linux are all ways of
>> getting them. I am sure they can be done easily in Java or other languages.
>> So, it really depends on which tools you are using to prepare the SQL for
>> inserting them into the DHIS2 database.
>>
>> Regards,
>> Jason
>>
>>
>>
>> On Wed, May 7, 2014 at 10:07 AM, Hannan Khan <hannank@xxxxxxxxx> wrote:
>>
>>> No. It seems that uuid is not automatically generated. Please suggest.
>>>
>>> Regards
>>>
>>> Hannan
>>> On May 7, 2014 1:34 PM, "Jason Pickering" <jason.p.pickering@xxxxxxxxx>
>>> wrote:
>>>
>>>> The UUID will be generated automatically, so no need to worry about it.
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>>
>>>> On Wed, May 7, 2014 at 9:29 AM, Hannan Khan <hannank@xxxxxxxxx> wrote:
>>>>
>>>>> Thanks Jason. Password issues are there and we are trying with that
>>>>> but what about the UUID?
>>>>>
>>>>>  Regards
>>>>>
>>>>> Hannan
>>>>>
>>>>>
>>>>> On Wed, May 7, 2014 at 12:14 PM, Jason Pickering <
>>>>> jason.p.pickering@xxxxxxxxx> wrote:
>>>>>
>>>>>> Hi Hannan,
>>>>>> This has been discussed (again) recently on this list.
>>>>>>
>>>>>>
>>>>>> http://dhis-developers-list.1563109.n2.nabble.com/Password-Generation-td7590749.html#a7590750
>>>>>>
>>>>>>
>>>>>> http://dhis-developers-list.1563109.n2.nabble.com/USERS-Password-td7591703.html#a7591704
>>>>>>
>>>>>> There are a few more as well in the archives if you dig a bit.
>>>>>>
>>>>>> Regards,
>>>>>> Jason
>>>>>>
>>>>>>
>>>>>>
>>>>>>  On Wed, May 7, 2014 at 8:10 AM, Hannan Khan <hannank@xxxxxxxxx>wrote:
>>>>>>
>>>>>>>  Dear Experts
>>>>>>>
>>>>>>> We are in a need of creating bulk users (8000) and org unit
>>>>>>> assignment. I created script for testing but facing problem populating
>>>>>>> password and UUID. Please advice how can I do that?
>>>>>>>
>>>>>>> I try to update password using crypt function and gen_salt function
>>>>>>> but the length of the password are different and doesn't working. Please
>>>>>>> advise.
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>>  *Hannan Khan*
>>>>>>>
>>>>>>> --------------------------------------------------
>>>>>>>
>>>>>>> Senior Technical Advisor - Health Information Systems
>>>>>>>
>>>>>>> Health Sector
>>>>>>>
>>>>>>> Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH
>>>>>>>
>>>>>>> House10/A, Road 90, Gulshan 2, Dhaka 1212, Bangladesh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> T +880-2- 8816459, 8816412 ext 118
>>>>>>> F +88 02 8813 875
>>>>>>>
>>>>>>> M+88 01819 239 241
>>>>>>>
>>>>>>> M+88 01534 312 066
>>>>>>> E hannan.khan@xxxxxx
>>>>>>>
>>>>>>> I   www.giz.de
>>>>>>>
>>>>>>> S hannan.khan.dhaka
>>>>>>>
>>>>>>> B hannan-tech.blogspot.com
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://dhis2.org
>

Follow ups

References