Add contact group using webapi to user created by ldap syncronization

Yes and as I mentioned that seems to work fine if the user was created directly in check MK, But if your user was created By LDAP sync, that command will result in an error