dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #50956
Update User Password Via Web API
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
Follow ups