added addUserInvitations related functionality