When specifying an explicit primary-group it should of course already exist, before useradd can create the user.
When removing the primary-group statement from the user definition the user is created just fine (including it's primary group with the same name as the user).
Please ignore my last comment (#4).
When specifying an explicit primary-group it should of course already exist, before useradd can create the user.
When removing the primary-group statement from the user definition the user is created just fine (including it's primary group with the same name as the user).
For me this has fixed the issue I've reported.