Issue 618 in google-gdata: GroupsService.RetrieveAllMembers

48 views
Skip to first unread message

google...@googlecode.com

unread,
Aug 24, 2012, 3:27:32 PM8/24/12
to gdata-dotnet-...@googlegroups.com
Status: New
Owner: ----

New issue 618 by jamier....@gmail.com: GroupsService.RetrieveAllMembers
http://code.google.com/p/google-gdata/issues/detail?id=618

What steps will reproduce the problem?

AppsService service = new AppsService(domain,user,password);
var members = service.Groups.RetrieveAllMembers("test");
Console.WriteLine(members.Entries.First().Title.Text);

What is the expected output? What do you see instead?

Expected output is the entry information, but instead it's null. The number
of entries is correct if I use:

Console.WriteLine(members.Entries.Count);

So I know the person has the correct permissions.

What version of the product are you using? On what operating system?


Please provide any additional information below.

version 2.1

google...@googlecode.com

unread,
Aug 24, 2012, 3:45:45 PM8/24/12
to gdata-dotnet-...@googlegroups.com
Updates:
Status: ByDesign

Comment #1 on issue 618 by ccherub...@google.com:
GroupsService.RetrieveAllMembers
http://code.google.com/p/google-gdata/issues/detail?id=618

A member entry from the Provisioning API looks like the following:

<entry>

<id>https://apps-apis.google.com/a/feeds/group/2.0/domain.com/testgroup/member/testuser%domain.com</id>
<updated>2012-08-24T19:42:59.041Z</updated>
<link rel='self' type='application/atom+xml'
href='https://apps-apis.google.com/a/feeds/group/2.0/domain.com/testgroup/member/testuser%domain.com'/>
<link rel='edit' type='application/atom+xml'
href='https://apps-apis.google.com/a/feeds/group/2.0/domain.com/testgroup/member/testuser%domain.com'/>
<apps:property name='memberType' value='User'/>
<apps:property name='memberId' value='test...@domain.com'/>
<apps:property name='directMember' value='true'/>
</entry>

As you can see, the title property is not set, that's why it is empty.

google...@googlecode.com

unread,
Aug 24, 2012, 3:49:21 PM8/24/12
to gdata-dotnet-...@googlegroups.com

Comment #2 on issue 618 by jamier....@gmail.com:
GroupsService.RetrieveAllMembers
http://code.google.com/p/google-gdata/issues/detail?id=618

So how would you access that from .NET?

google...@googlecode.com

unread,
Aug 24, 2012, 3:54:22 PM8/24/12
to gdata-dotnet-...@googlegroups.com

Comment #3 on issue 618 by ccherub...@google.com:
GroupsService.RetrieveAllMembers
http://code.google.com/p/google-gdata/issues/detail?id=618

A MemberEntry has properties such as MemberId or MemberType, check the
source for the complete list:

http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/src/gapps/memberentry.cs

google...@googlecode.com

unread,
Aug 24, 2012, 4:13:40 PM8/24/12
to gdata-dotnet-...@googlegroups.com

Comment #4 on issue 618 by jamier....@gmail.com:
GroupsService.RetrieveAllMembers
http://code.google.com/p/google-gdata/issues/detail?id=618

Ok, I see now. This is way different than the version we were previously
using. We are upgrading from the 1.6 and it's way different. I see now.
Thanks.

google...@googlecode.com

unread,
Jul 24, 2015, 4:59:39 PM7/24/15
to gdata-dotnet-...@googlegroups.com

Comment #5 on issue 618 by elbrothe...@gmail.com:
GroupsService.RetrieveAllMembers
https://code.google.com/p/google-gdata/issues/detail?id=618

In this line of code:

AppsService service = new AppsService(domain,user,password);
var members = service.Groups.RetrieveAllMembers("test");
Console.WriteLine(members.Entries.First().Title.Text);

Im getting this err:

An unhandled exception of type 'System.ArgumentException' occurred in
mscorlib.dll

Additional information: Stream was not readable.

AnyHelp



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages