Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-16-2007, 08:39 AM
Loyal Member
 
Posts: 80
Default Get All Accounts by domain

Attempting to get all accounts in a given domain, can't seem to figure out the correct attributes to add to the tag request. So far I have:

Code:
Element tagsRequest = Element.XMLElement.mFactory.createElement(AdminService.GET_ALL_ACCOUNTS_REQUEST);
tagsRequest.addAttribute(AdminService.E_DOMAIN, "mydomain.com", Element.DISP_CONTENT);
It throws an exception: com.zimbra.soap.SoapFaultException: invalid request: missing required attribute: by

I see there's a AdminService.BY_NAME but I can't seem to figure out how to get it to work. Can anyone help me out?
Reply With Quote
  #2 (permalink)  
Old 05-20-2007, 08:12 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by moniker View Post
Attempting to get all accounts in a given domain, can't seem to figure out the correct attributes to add to the tag request. So far I have:

Code:
Element tagsRequest = Element.XMLElement.mFactory.createElement(AdminService.GET_ALL_ACCOUNTS_REQUEST);
tagsRequest.addAttribute(AdminService.E_DOMAIN, "mydomain.com", Element.DISP_CONTENT);
It throws an exception: com.zimbra.soap.SoapFaultException: invalid request: missing required attribute: by

I see there's a AdminService.BY_NAME but I can't seem to figure out how to get it to work. Can anyone help me out?
tagsRequest.addAttribute("by", AdminService.BY_NAME) might work.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.