Thanks Claudio,
I'm not sure how to call RetrieveAllDomainUsers using 2 Legged OAuth (I'm a
Google Apps Marketplace developer). Code posted below does not work, so
hopefully you can point me in the right direction to get a read only list of
all users in a domain, no matter what subdomain they belong to.
' create an OAuth factory to use
Dim requestFactory As New GOAuthRequestFactory("CS", "MyApp")
requestFactory.ConsumerKey =
System.Configuration.ConfigurationManager.AppSettings("GoogleAppsConsumerKey")
requestFactory.ConsumerSecret =
System.Configuration.ConfigurationManager.AppSettings("GoogleAppsConsumerSecret")
Dim newService As New
MultiDomainManagementService(UserData.GOOGLE_APPS_DOMAIN, "MyApp")
newService.RequestFactory = requestFactory
Dim newFeed As AppsExtendedFeed =
newService.RetrieveAllDomainUsers(UserData.GOOGLE_APPS_DOMAIN)
For Each entry As AppsExtendedEntry In newFeed.Entries
'Do Stuff
Next
--
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/-/iKnLnaD-_JsJ.
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.