Hi Jim,

Your code looks fine.  UserEntry.getEmail() is a placeholder for
future email related attributes, so that's why it's null.  If you're
after the username, try:

userEntry.getLogin().getUserName()

-alex

On Nov 15, 5:21 am, Jim Willeke <[EMAIL PROTECTED]> wrote:
> I must be missing something.
> UserFeed constructor says:
> "Constructs a new UserFeed instance that is parameterized to contain
> UserEntry instances."
>
> How can I get a UserEntry from a UserFeed?
>
> When I try:
>                 AppsForYourDomainClient client = new
> AppsForYourDomainClient(adminEmail, adminPassword, domain);
>                 UserFeed uf = client.retrieveAllUsers();
>                 List<UserEntry> userList=uf.getEntries();
>
>                 for (UserEntry userEntry : userList)
>                 {
>                         UserEntry entry = (UserEntry) userEntry;
>                         LOGGER.log(Level.INFO, "Name: " + 
> userEntry.getName());
>                         LOGGER.log(Level.INFO, "Email: " + 
> userEntry.getEmail());
>                         LOGGER.log(Level.INFO, "Class: " + 
> userEntry.getClass());
>                 }
>
> INFO: Name: [EMAIL PROTECTED]
> INFO: Email: null
> INFO: Class: class
> com.google.gdata.data.appsforyourdomain.provisioning.UserEntry
>
> Thanks for the help.
> -jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps 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-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to