Turns out there is an issue when you are trying to add a user to a group in the same transaction as you are creating the user.