← Back to team overview

dhis2-devs team mailing list archive

Re: User logged out when creating from API

 

I think there should be a functional with optional selector meta interface in between this 
complex but complete work flow, for selection of user ( creator user or new user ) should 
be logged in or logged out during new user creation process should be powered by super user.

Means work flow should support both, like if creator user willing to continue the session even 
after new user creation. Or, if creator user recommend the next logged in should be performed for 
just in time new user created by creator user. I think, this should not be automatically decided 
by system's artificial intelligence nomenclature, which user next should be logged in after new 
user creation process, but by the mind set of creator user.
 

Regards
Brajesh Murari 


P please consider the environment before printing this email

On Wednesday, 2 April 2014 4:34 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx> wrote:
 
Please be aware that is uses the same matching as our meta-data importer, which means that if you do a POST, and the code in userCredentials matches an already existing code, it will be treated as an update.


--
Morten


On Wed, Apr 2, 2014 at 6:01 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx> wrote:

Hi,
>
>
>Support for creation/update of users is now available in 2.15. The format is the same as before (see output from /api/users), just that the password part will be encoded for every POST/PUT.
>
>
>Please try it out, and report back any issues 
>
>
>--
>Morten
>
>
>On Tue, Apr 1, 2014 at 8:19 PM, Kiran Prakash <kprakash@xxxxxxxxxxxxxxxx> wrote:
>
>Ok. Thanks, Is there a branch on Launchpad that has the User resource creation API that we can have a look at and start developing against?
>>
>>
>>
>>
>>On Tue, Apr 1, 2014 at 6:06 PM, Lars Helge Øverland <larshelge@xxxxxxxxx> wrote:
>>
>>Cool.
>>>
>>>
>>>
>>>On Tue, Apr 1, 2014 at 2:29 PM, Kiran Prakash <kprakash@xxxxxxxxxxxxxxxx> wrote:
>>>
>>>Yes. We can do that. 
>>>>
>>>>Thanks Lars!
>>>>
>>>>
>>>>
>>>>
>>>>On Tue, Apr 1, 2014 at 5:50 PM, Lars Helge Øverland <larshelge@xxxxxxxxx> wrote:
>>>>
>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>On Tue, Apr 1, 2014 at 2:09 PM, Kiran Prakash <kprakash@xxxxxxxxxxxxxxxx> wrote:
>>>>>
>>>>>Ok. Thanks a lot. 
>>>>>>
>>>>>>
We're facing the same issue with UserSetting object as well. Is there a way for admin user to UserSetting for another user using API without admin being logged out?
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>Understand. It's not supported but is easy to add, we can fix it in in day or two. 
>>>>>
>>>>>
>>>>>Let me know if you feel like writing a patch, classes to touch are DefaultUserSettingService.java (dhis-service-core) and UserSettingController.java (dhis-web-api).
>>>>>
>>>>>Lars
>>>>>
>>>>>
>>>>> 
>>>>
>>>
>>
>>
>>_______________________________________________
>>Mailing list: https://launchpad.net/~dhis2-devs
>>Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>Unsubscribe : https://launchpad.net/~dhis2-devs
>>More help   : https://help.launchpad.net/ListHelp
>>
>>
>

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

References