cancel
Showing results for 
Search instead for 
Did you mean: 

how to create user in nuxeo?

murugavel_
Champ in-the-making
Champ in-the-making

we are developing custom php applicaion in nuxeo. there is no user creation model document in your documentation center.please explain how to create user via php automation client?

1 REPLY 1

Amir_Buzo
Confirmed Champ
Confirmed Champ

I think you can not create users via automation client you should use rest api. Or you can experiment with the code below in client if usermanager is available.

 UserManager userManager = Framework.getService(UserManager.class);
        
             DocumentModel newUser = userManager.getBareUserModel();
          newUser.setProperty("user", "username",
                  name+surname);
          newUser.setProperty("user", "firstName",
                  name);
          newUser.setProperty("user", "lastName",
                 surname);
          newUser.setProperty("user", "email",
                  name.concat(surname+"@example.com"));
                  name+surname);
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.