暂停列出组成员 [英] List suspended group members

本文介绍了暂停列出组成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从<一个继href="http://stackoverflow.com/questions/17726057/unable-to-retrieve-settings-for-google-group-using-net-client-library">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.

这篇关于暂停列出组成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆