1

I'm using the Admin SDK Directory api to read users out of a domain. Everything works fine except for the fact that the users.list is returning groups as part of that list. While not devastating it causes some confusion when users are using my app.

The method in question can be found here.
https://developers.google.com/admin-sdk/directory/v1/reference/users/list

I don't even use the scopes for groups. I have authorization for the https://www.googleapis.com/auth/admin.directory.user.readonly scope only, not any related to groups.

Here is an example of a user entry returned (with names and such obviously changed):

{
  "kind": "admin#directory#user",
  "id": "someId",
  "etag": "\"An etag\"",
  "primaryEmail": "group@domain.com",
  "isAdmin": false,
  "isDelegatedAdmin": false,
  "lastLoginTime": "1970-01-01T00:00:00.000Z",
  "creationTime": "1970-01-01T00:00:00.000Z",
  "agreedToTerms": false,
  "suspended": false,
  "changePasswordAtNextLogin": false,
  "ipWhitelisted": false,
  "emails": [
    {
    "address": "group@domain.com",
    "primary": true
    }
  ],
  "customerId": "customer",
  "orgUnitPath": "/",
  "isMailboxSetup": true,
  "includeInGlobalAddressList": true
}
4

1 回答 1

0

这是由于 API 中的错误。Google Apps API 问题跟踪器正在跟踪此错误:

https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3654

于 2014-10-27T17:34:52.123 回答