Hi,

I'm trying to write a PHP script that looks at all the Google Groups in our 
domain and pulls down their membership lists so that information can be 
recorded locally in our LDAP server.  I've got a script that looks like 
this right now:

$groups = $service->retrieveAllGroups();

foreach($groups as $group) {
  # i have not figured out yet how to access properties by their "name", 
rather
  # than their index in the $group->property array, so I'm making an 
associative
  # array of all the properties for now

  $properties = array();

  foreach($group->property as $property) {
    $properties[$property->name] = $property->value;
  }

  $members = $service->retrieveAllRecipients($properties["groupId"]);

  foreach($members as $member) {
    # record membership information here
  }
}

However, retrieving the membership list can take quite a while on some of 
our groups - many of them have more than 1,000 members.  Is there any way 
to get a "last time a member was added or removed from the group" property 
so that I can simply skip the ones that have not been updated since the 
last time I ran the sync script?  Is there a more efficient way of doing 
this?  Is there any way Google can be configured to "push" updates to us, 
so that we don't have to "pull" them periodically?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-apps-mgmt-apis/-/wOB2EfCKDpsJ.
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.

Reply via email to