Reputation: 21
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?
Upvotes: 2
Views: 637
Reputation: 17752
It seems that this use-case was left out of the Directory API (therefore this is not really an Apps Script issue).
You should report this issue here: https://code.google.com/a/google.com/p/apps-api-issues/wiki/IssuesTab?tm=3
Upvotes: 1