Hi David,
Please note that the AddOwnerToGroup() method takes an existing group member
and assigns him the owner role, so if you want to add an user to the group
and make him an owner you have to call both AddMemberToGroup()
and AddOwnerToGroup(), like in the following example:
service.Groups.AddMemberToGroup("[email protected]", "mygroupId");
service.Groups.AddOwnerToGroup("[email protected]", "mygroupId");
When you then call
service.Groups.RemoveOwnerFromGroup("[email protected]", "mygroupId");
you only change the role for [email protected] from Owner to Member, but that
user is still part of the group.
If you eventually call
feed = service.Groups.RetrieveGroupOwners("mygroupId");
the resulting feed will not contain [email protected], but he will still be
included in
feed = service.Groups.RetrieveAllMembers("mygroupId");
Does this explain the behavior you are experiencing?
If not, please post a sample code that shows your problem.
Thanks
Claudio
On Tue, Apr 12, 2011 at 10:41 AM, DavidS <[email protected]>wrote:
> After creating a user as an owner of a group and then removing them from
> the group, they are still showing as present in the group (when querying the
> RetrieveMember method in the GroupsService API (using the .Net client
> library)).
>
> This is the case if I remove them through the API or via the dashbaord.
> Users that are members are not affected this way.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Apps Domain Information and Management APIs" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google Apps Domain Information and Management APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.