User name prefix in API sites_ftp_user_add

Discussion in 'Developers' Forum' started by CubAfull, Apr 29, 2016.

  1. CubAfull

    CubAfull Member

    In my server I have a prefix for ftp users. FTP user prefix > [CLIENTNAME]_ but when I create a new ftp user with the API function sites_ftp_user_add, the user name is created without prefix!
    It's this a normal behavior?
    If yes, there is an API function that return this prefix?
    $ftp_params = array(
    'username' => 'somename',
    Created user name: somename
    Expected user name: prefix_somename
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. The API is really low level and can be used for things that you can't do from interface, so you have to add the prefix yourself when using the api function.

Share This Page