Samba provisioning failes at upgrade from v6 to v7

This is not possible for primary groups. I guess your setup has some customization? Is it an user/group created from the command line or by some other means?