暂停列出组成员组成员

由网友(上邪)分享简介:从my previous问题,我试图检索使用新的谷歌admin目录API和当前客户端库成员,给定组的列表, Google.Apis.Admin.directory_v1 Following on from my previous question, I am trying to retrieve a list of...

从my previous问题,我试图检索使用新的谷歌admin目录API和当前客户端库成员,给定组的列表, Google.Apis.Admin.directory_v1

Following on from my previous question, I am trying to retrieve a list of members for a given group using the new Google Admin Directory API and the current client library, Google.Apis.Admin.directory_v1.

我有以下的code(可能不是最好的方法,但它的工作原理:):

I have the following code (possibly not the best approach, but it works :):

var members = new List<Member>();

// This is the key part
var request = _directoryService.Members.List(groupKey);
var result = request.Execute();

if (result.MembersValue != null)
    members.AddRange(result.MembersValue);

// Get subsequent pages
while (! string.IsNullOrEmpty(result.NextPageToken)) {
    request.PageToken = result.NextPageToken;
    result = ExecuteRequest(request);

    if (result.MembersValue != null)
        members.AddRange(result.MembersValue);
}

这工作正常,但有一个问题:结果(成员列表)中不包含这些成员谁是该组中,但暂停。这些被列在域管理员的用户界面在admin.google.com,但不会出现在由API返回的列表。

This works fine, but has one problem: the results (the members list) does not contain those members who are in the group but are suspended. These are listed in the domain admin UI at admin.google.com, but don't appear in the list returned by the API.

有没有什么办法,使他们?基本上,我所有成员(或业主,经理)之后是,无论其悬挂岬的。

Is there any way to bring them in? Basically, I'm after all members (or owners, managers), regardless of their suspended-ness.

我已经看到了在文档,但我看到什么。

I've taken a look at the documentation, but am seeing nothing.

推荐答案

Admin组熟悉这个问题,他们正在浮出水面暂停/组管理员SDK目录API中的未决/禁止成员。 它应该很快得到解决。

The admin group is familiar with this issue and they are working on to surface suspended/pending/banned members of the group in the Admin SDK Directory API. It should be fixed soon.

阅读全文

相关推荐

最新文章