Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2011
    Posts
    27

    Default mail account creation via http api

    Hello,

    I'm trying the http api of Open-Xchange to create mail accounts and i'm facing everytime the same problem using the put method on https://server/ajax/account?action=new :

    {"categories":"PERMISSION_DENIED","error_params ":[2,1],"category":3,"error":"Multiple mail accounts not enabled for user 2 in context 1.","code":"ACC-0014","error_id":"728173775-2234"}

    The user session i'm using has got the id 2 and the message just gives the information this user can't have more than 1 mail account : i'm ok with that.

    The question is:
    Is there any possibility to create an account not related directly with the user used in the session??
    In the ideal:
    - Access to the api with a "superuser"
    - Mail accounts creation for several new users

    Thanks by advance for your answer.

  2. #2
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    Hi,

    there is no superuser "guest mode" yet. You may enable multiple accounts for each user or a whole context by setting --access-multiple-mail-accounts on and/or installing the appropriate software package at the backend.

    Cheers
    Martin

  3. #3
    Join Date
    Apr 2011
    Posts
    27

    Default

    Thanks for your answer.

    That means it's not actually possible to create new user accounts (mail & groupware) from the http api??
    My "global" goal is to manage accounts creation/modification with specific workflows so that lack is a bit disapointing as Open-Xchange is a major product in our organisation.
    Do you know if that kind of feature is in the roadmap??

  4. #4
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    The HTTP API is not meant for administrative tasks. These kind of tasks can be done using our RMI (Java) or SOAP API. You may combine administrative tasks with the HTTP API as long as the users initial password is known. Perhaps that's a valid option for implementing workflows that include user-specific settings.

  5. #5
    Join Date
    Apr 2011
    Posts
    27

    Default

    oh i totally missed the soap api : thanks a lot!!

Bookmarks

Posting Permissions

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