Database and interface language for user invitations - JSON

Hi Devs
I need to create a large number of user invitations and I’d like to know if its possible to configure the interface and database language in the JASON structure.
Best regards,
JM

Hi JM,

sorry you cannot do that directly. However, if you can create easily script if after you have sent the invites by creating these user-settings for each user/invite. Have a look the docs for user settings:

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s33.html

So by remembering the usernames of your invites you can make two POST requests per invite like this:

/api/userSettings/keyUiLocale?user=&value=en

/api/userSettings/keyDbLocale?user=&value=en

regards,

Lars

···

On Wed, May 6, 2015 at 6:43 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hi Devs

I need to create a large number of user invitations and I’d like to know if its possible to configure the interface and database language in the JASON structure.

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Lars

We wanted to give the users the option to add the username in the activation process, I guess we’ll just have to choose for them or show them how to change that once they activate the account :wink:

Thanks for your help!

Best regards,

JM

···

On Wed, May 6, 2015 at 6:43 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hi Devs

I need to create a large number of user invitations and I’d like to know if its possible to configure the interface and database language in the JASON structure.

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp