In a Google Apps for Education domain, I can approve a "pending" user in a group by setting their role to "member", also and I can remove a user with the role of "member" with the code below:
member = AdminDirectory.Members.remove(groupKey, memberKey);
But the same code does not work for a user with a role of "PENDING".
Is there a way to reject/remove an invite/pending user via Google Apps Directory Script?