← Back to team overview

dhis2-users team mailing list archive

Re: User accounts import

 

Hi Martin,

Here is some really hacky R code to generate a bunch of users.The script is
really basic, and really needs more work to automate it fully, but it will
work. It will undoubtedly need to be tweaked to your needs, but you should
be able to see the general approach.

Regards,
Jason



On Mon, Jan 21, 2013 at 1:19 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>wrote:

> User support in the Web-API is not very good at the moment. I'm hoping to
> improve this in the future, but I would go with the approach outlined from
> Randy.
>
> Jason has had some luck with using R for this kind of stuff (including
> generating passwd).
>
> --
> Morten
>
>
> On Mon, Jan 21, 2013 at 11:14 AM, Ocaya Stephen <stephocay@xxxxxxxxx>wrote:
>
>> I *Think *another way could be to use a WebAPI ... though that wouldrequire you to do some coding (One time
>> coding) on a import script ...
>>
>> But First try the Randy's alternative.
>>
>> --Stephen (META Project)
>>
>> On Mon, Jan 21, 2013 at 12:51 PM, Wilson,Randy <rwilson@xxxxxxx> wrote:
>>
>>>  Hi Martin,****
>>>
>>> ** **
>>>
>>> Yes, we have done this quite a few times in Rwanda.  I can send you the
>>> excel template and the SQL queries needed to update the various user
>>> table.  The only thing we can't do is create the hashed password.  Normally
>>> I send the spreadsheet to Knut or Bob Jolliffe and they create the hash
>>> password.****
>>>
>>> ** **
>>>
>>> Randy Wilson ****
>>>
>>> ** **
>>>
>>> *From:* dhis2-users-bounces+rwilson=msh.org@xxxxxxxxxxxxxxxxxxx [mailto:
>>> dhis2-users-bounces+rwilson=msh.org@xxxxxxxxxxxxxxxxxxx] *On Behalf Of *Martin
>>> Namutso
>>> *Sent:* Monday, January 21, 2013 11:34 AM
>>> *To:* dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> *Subject:* [Dhis2-users] User accounts import****
>>>
>>> ** **
>>>
>>> Guys - i have up to close to 100 people to create usernames for in DHIS2
>>> system...Is there a way i can import these using the import export
>>> functionality..or is there any other way?
>>> ****
>>>
>>>
>>> -----
>>>
>>> *Blessings & regards*
>>>
>>> *Martin Namutso | IT Specialist | Mob: +256 782 006 662*
>>>
>>> *----- If you think education is expensive try ignorance! -----
>>>
>>> "To oppose CORRUPTION in government is the highest obligation of
>>> patriotism." -- G. Edward Griffin*****
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>>
>>  *You can do anything, but not everything.*
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>

Attachment: user_bootstrap.r
Description: Binary data


References