07-24-2014 02:33 AM
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?
12-28-2016 03:37 AM
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);
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.