Create user with password

I'm trying to sync user management between Nuxeo server and an application built with it. I've read the model documentation at https://doc.nuxeo.com/rest-api/1/user-entity-type/ and the endpoint documentation at https://doc.nuxeo.com/rest-api/1/user-endpoint/# The property for the user name is 'username' but what's the property to set for his/her password? I can try an educated guess but couldn't figure out this information from the documentation.

Thanks in advance for your help.

0 votes

2 answers

929 views

ANSWER



You just need to pass the “password” property inside “properties” object

{
    "entity-type": "user",
    "id": "",
    "properties": {
        "lastName": "Demo",
        "username": "demo",
        "email": "demo@localhost",
        "company": "",
        "firstName": "Demo",
        "password": "12345"
    }
}
0 votes



Hello,

This part of the documentation is missing, but it should be planned to be reviewed. In the meantime, you can use the automation endpoint https://nuxeo.github.io/api-playground/#/commands/User.CreateOrUpdate: you'll find the password attribute.

Regards

0 votes