← Back to team overview

dhis2-devs team mailing list archive

Re: Update User Password Via Web API

 

What you provide here is just the summary report...

To change a password, you need to add "password" field to the
"userCredentials" part of the payload... are you doing that?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Mar 26, 2018 at 6:25 PM, Farai Mutero <fmutero@xxxxxxxxx> wrote:

> Hi All
>
> We are looking at automating the process of resetting of a user's password
> when the password expires  I'm trying to update the user password via the
> WebAPI. I carefully prepare the payload as dictated by the documentation
> and the API sends back a response as below that the user has been updated,
> but the password does not change, the old password still works even after
> providing a new one in the payload. How can I solve this problem?
>
> {"importParams":{"importMode":"COMMIT","identifier":"UID","
> preheatMode":"REFERENCE","importStrategy":"UPDATE","
> atomicMode":"ALL","mergeMode":"REPLACE","flushMode":"AUTO","
> skipSharing":false,"skipValidation":false,"username":"Farai_Mutero"},"
> status":"OK","typeReports":[{"klass":"org.hisp.dhis.user.
> User","stats":{"created":0,"updated":1,"deleted":0,"
> ignored":0,"total":1},"objectReports":[{"klass":"org.
> hisp.dhis.user.User","index":0,"uid":"ogzPPGeR3je"}]}],"
> stats":{"created":0,"updated":1,"deleted":0,"ignored":0,"total":1}}
>
> --
> Farai Mutero
>
>
> _______________________________________________
> 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
>
>

Follow ups

References