Add memberships for user and groups created.