IDM-13 Change the addUserGroup operation to be more generic