Note that there are some explanatory texts on larger screens.

plurals
  1. POList suspended group members
    primarykey
    data
    text
    <p>Following on from <a href="https://stackoverflow.com/questions/17726057/unable-to-retrieve-settings-for-google-group-using-net-client-library">my previous question</a>, 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, <strong>Google.Apis.Admin.directory_v1</strong>.</p> <p>I have the following code (possibly not the best approach, but it works :):</p> <pre><code>var members = new List&lt;Member&gt;(); // 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); } </code></pre> <p>This works fine, but has one problem: the results (the <code>members</code> 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.</p> <p>Is there any way to bring them in? Basically, I'm after all members (or owners, managers), regardless of their suspended-ness.</p> <p>I've taken a look at the <a href="https://developers.google.com/admin-sdk/directory/v1/reference/members/list" rel="nofollow noreferrer">documentation</a>, but am seeing nothing.</p>
    singulars
    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