backend implemented for group invites