← Back to team overview

dhis2-devs team mailing list archive

Password not working when creating Users through API

 

Dear Devs,

We made several users by Posting to "../api/Users" endpooint.
Eg payload-

{"firstName":"harsh","surname":"harsh","email":"harsh",
"userCredentials":
{"username":"harsh","password":"harsh","userRoles":[{"id":"yrB6vc5Ip3r"}]},
"organisationUnits":[{"id":"WBFNadSm5EQ"}],"userGroups":[]}

The users were created all right but the given password didn't work. So we
had to change the password through application..

Is there something we missed when creating user through API? Please help.

DHIS2 version - 2.23

Thank You
harsh

Follow ups