Note that there are some explanatory texts on larger screens.

plurals
  1. PODirectory API: delete member API operation fails for non-Google accounts
    primarykey
    data
    text
    <p>We are noticing that group members cannot be removed using the new Directory API if they are not Google accounts. We've tested this with both Dito GAM (note I am the author of GAM) and the Google API Explorer.</p> <p>The operation functions correctly if the member to be removed is a Google account:</p> <pre><code>C:\gam-64&gt;gam update group group99@jay.powerposters.org remove google-user@jay.powerposters.org removing google-user@jay.powerposters.org connect: (www.googleapis.com, 443) send: 'DELETE /admin/directory/v1/groups/group99@jay.powerposters.org/members/google-user@jay.powerposters.org?quotaUser=1ee51612c9a0220af0cf5516a990b206e2a619e8&amp;prettyPrint=true HTTP/1.1 Host: www.googleapis.com content-length: 0 authorization: Bearer &lt;valid access token&gt; accept-encoding: gzip, deflate accept: */* user-agent: Dito GAM 3.01 / jay@ditoweb.com (Jay Lee) / Python 2.7.5 final / Windows-7-6.1.7601-SP1 AMD64 / google-api-python-client/1.2 (gzip) reply: 'HTTP/1.1 204 No Content header: Cache-Control: no-cache, no-store, max-age=0, must-revalidate header: Pragma: no-cache header: Expires: Fri, 01 Jan 1990 00:00:00 GMT header: Date: Wed, 28 Aug 2013 12:57:06 GMT header: ETag: "cZnI-gy4eI-n1-_cqk7okAteLZk/vyGp6PvFo4RvsFtPoIWeCReyIC8" header: Server: GSE </code></pre> <p>this is the expected behavior. However, if the account to be removed is not a Google Account (Google Apps or consumer), an error is returned:</p> <pre><code>C:\gam-64&gt;gam update group group99@jay.powerposters.org remove not-a-google-account@not-a-google-domain.com removing not-a-google-account@not-a-google-domain.com connect: (www.googleapis.com, 443) send: 'DELETE /admin/directory/v1/groups/group99@jay.powerposters.org/members/not-a-google-account@not-a-google-domain.com?quotaUser=1ee51612c9a0220af0cf5516a990b206e2a619e8&amp;prettyPrint=true HTTP/1.1 Host: www.googleapis.com\r\ncontent-length: 0 authorization: Bearer &lt;valid oauth 2.0 token&gt; accept-encoding: gzip, deflate accept: */* user-agent: Dito GAM 3.01 / jay@ditoweb.com (Jay Lee) / Python 2.7.5 final / Windows-7-6.1.7601-SP1 AMD64 / google-api-python-client/1.2 (gzip) reply: 'HTTP/1.1 400 Bad Request header: Content-Type: application/json; charset=UTF-8 header: Content-Encoding: gzip header: Date: Wed, 28 Aug 2013 13:00:02 GMT header: Expires: Wed, 28 Aug 2013 13:00:02 GMT header: Cache-Control: private, max-age=0 header: X-Content-Type-Options: nosniff header: X-Frame-Options: SAMEORIGIN header: X-XSS-Protection: 1; mode=block header: Content-Length: 122 header: Server: GSE body: { "error": { "errors": [ { "domain": "global", "reason": "badRequest", "message": "Bad Request" } ], "code": 400, "message": "Bad Request" } } Error 400: Bad Request - badRequest </code></pre> <p>Note that this same behavior shows in the Google API Explorer also:</p> <p><a href="http://screencast.com/t/fQZCnMYYs" rel="nofollow">http://screencast.com/t/fQZCnMYYs</a></p> <p><a href="https://developers.google.com/apis-explorer/#s/admin/directory_v1/directory.members.delete?groupKey=group99%2540jay.powerposters.org&amp;memberKey=not-a-google-account%2540not-a-google-domain.com&amp;_h=1&amp;" rel="nofollow">https://developers.google.com/apis-explorer/#s/admin/directory_v1/directory.members.delete?groupKey=group99%2540jay.powerposters.org&amp;memberKey=not-a-google-account%2540not-a-google-domain.com&amp;_h=1&amp;</a></p> <p>It should be possible to remove ANY address from a Google Group via the Directory API</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload