Results 1 to 4 of 4

Thread: Create administrator account using SOAP

  1. #1
    Join Date
    Sep 2010
    Posts
    3
    Rep Power
    5

    Default Create administrator account using SOAP

    Hello,

    Is it possible to create an administrator account using the SOAP api?

    I can't seem to find a method for it in the soap documentation.
    SourceForge.net Repository - [zimbra] Contents of /trunk/ZimbraServer/docs/soap-admin.txt

    Cheers
    //Moffe

  2. #2
    Join Date
    Sep 2010
    Posts
    3
    Rep Power
    5

    Default

    I'll guess it is not possible then.

    I'm currently building a provisioning system to provision new customers and a control panel for the customers to manage their accounts.

    My idea was to create an administrator account for each customer on the server, so the particular customer is limited to only administer accounts/domains which it has been granted access to. And this is in term of using the soap interface - not necessarily the admin UI, but could possible to.

    Does anyone have any pointers how I apply this to a user in Zimbra ?

  3. #3
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

    It is possible. Admin accounts are created the same way as regular accounts, but you need to specify the parameters that make it an admin account.

    I understand you want to make "domain admin" type of accounts, so you need to set zimbraIsDelegatedAdminAccount to TRUE when creating/modifying the account and add the user to the zimbradomainadmins@your_domain.tld distribution list. Or any DL you have created with the appropriate permissions.

    The soap call for the first part looks something like this:

    Code:
     
    <soap:Body>
        <ModifyAccountRequest xmlns="urn:zimbraAdmin">
          <id>89365fae-058c-xxxx-yyyyy-XXXXXXXXXXX</id>
          <a n="zimbraIsDelegatedAdminAccount">TRUE</a>
        </ModifyAccountRequest>
      </soap:Body>
    ...you can get the full listing if you run zmprov with the --debug (or -d) option.

  4. #4
    Join Date
    Sep 2010
    Posts
    3
    Rep Power
    5

    Default

    odeleon, thank you very much.. I wasn't aware of that option.

    Just what I needed to get this going again, thanks a lot.

    Cheers

Similar Threads

  1. Replies: 30
    Last Post: 04-05-2011, 01:03 AM
  2. SOAP: Create domain
    By joho in forum Developers
    Replies: 0
    Last Post: 04-13-2010, 04:07 PM
  3. Can recives but can't send mail outgoing
    By hoangkk in forum Installation
    Replies: 9
    Last Post: 09-21-2009, 07:35 PM
  4. Replies: 35
    Last Post: 07-17-2009, 03:52 PM
  5. zmzimletctl deploy zimbra_posixaccount.zip - ERROR -
    By todd_dsm in forum Administrators
    Replies: 0
    Last Post: 04-02-2009, 01:41 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
  •