The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

API for creation of WebDav users

Discussion in 'cPanel Developers' started by mteigers, Oct 15, 2012.

  1. mteigers

    mteigers Member

    Joined:
    Jul 10, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I was wondering if there was an API for creation of WebDav users and for editing of WebDav users. I have a CMS that creates users and would love to have the ability to give them a WebDav (WebDisk) account as well.

    Any ideas?

    Edit:

    I found the following page: http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiWebDisk

    but I'm not sure how to implement that.
     
    #1 mteigers, Oct 15, 2012
    Last edited: Oct 15, 2012
  2. colink

    colink Member

    Joined:
    Sep 24, 2012
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Hillsboro, OR
    cPanel Access Level:
    DataCenter Provider
    Inside of your CMS, you would create a hook, or workflow, or macro, to run after a user has been created. That code would call the API's that you found to create users, probably "addwebdisk". Then, you would do something similar when a user is edited (the API allows changing password, homdir, permissions, and so on), by writing another script.
     
Loading...

Share This Page