When I try to create a new user with role H1 (organization user) the callback is not fired:
vtiger.doCreate('Users', {
user_name : "johndoe",
user_password : "jnajsbchbweui",
confirm_password : "jnajsbchbweui",
last_name : "Doe",
first_name : "John",
roleid : "H1", // This is the organization role id
email1 : "john@doe.com"
}, function (err, user) {
// Returns nothing because callback not run
console.log("Error:", err);
console.log("User:", user);
});
If I try with the same code changing roleid to "H2" (CEO user), the callback is fired correctly without error and with new user object. Do you know why this happens?
Thanks in advance.