@JoseManuel121 Below example worked for me
if(userManager.getAuthorizable(userName)==null){ User user=userManager.createUser(userName, password,new SimplePrincipal(userName),"/home/users/test"); Value value=adminSession.getValueFactory().createValue("Issac", PropertyType.STRING); ...