I'm attempting to retrieve all organization users as shown in the code below:
OrganizationService service = new OrganizationService(domain, applicationName);
service.setUserCredentials(adminEmail, adminPassword);
AppsExtendedFeed feed=service.RetrieveAllOrganizationUsers(customerID);
foreach (AppsExtendedEntry unit in feed.Entries)
{
userList.Add(unit.getPropertyByName("memberId")); // Add the users to the ArrayList
}
However, it's failing because the parameter ("memberId") being passed to getPropertyByName appears to be wrong.
Can anyone tell me what the correct parameter should be if I wish to return all users in an OU in the form of email addresses? Or is there an alternative way to retrieve all users in an organisation? Any help would be greatly appreciated. Thanks.
Regards Ryan