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 09-02-2010, 04:39 AM
New Member
 
Posts: 3
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
Reply With Quote
  #2 (permalink)  
Old 09-25-2010, 06:31 AM
New Member
 
Posts: 3
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 ?
Reply With Quote
  #3 (permalink)  
Old 09-27-2010, 04:18 AM
Advanced Member
 
Posts: 236
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.
Reply With Quote
  #4 (permalink)  
Old 09-27-2010, 07:09 AM
New Member
 
Posts: 3
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
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.