Python auth pipeline to assign a group to a new user.