Results 1 to 2 of 2

Thread: Get All Accounts by domain

  1. #1
    Join Date
    Mar 2006
    Posts
    80
    Rep Power
    9

    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?

  2. #2
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    10

    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.

Similar Threads

  1. Replies: 5
    Last Post: 07-06-2010, 03:44 AM
  2. move accounts to a diff domain
    By preston in forum Administrators
    Replies: 4
    Last Post: 10-07-2007, 08:05 PM
  3. Domain administrator can't edit accounts
    By lindworm in forum Administrators
    Replies: 2
    Last Post: 02-09-2007, 09:39 PM
  4. Replies: 4
    Last Post: 07-13-2006, 09:55 PM
  5. domain coexistence
    By marcmac in forum Administrators
    Replies: 14
    Last Post: 06-30-2006, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •