Well, the ratio would be that you would init additional groups only if you're switching UID. It has to be checked that if the UID change clears the additional groups to avoid keeping the former additional groups when changing only the GID.