As nobody answered and as I got to have to deal with it, I’ve discovered that the problem comes from the fact that my chef server, being connected with LDAP, had somehow already that user in a group and was not able to add it again.