API - get ftp user by domain_id

Discussion in 'General' started by mahafue, Mar 6, 2017.

  1. mahafue

    mahafue New Member

    Hi *,

    is it possible to get all ftp-users by domain_id?
    I found only the function "sites_ftp_user_get" where I have to use the ftp_user_id/primary_id.

    Thx and cheers
    Marco
     
  2. liane

    liane Member HowtoForge Supporter

    PHP:
    $ftp_users $client->sites_ftp_user_get($session_id, array('parent_domain_id' => '2'));
    print_r($ftp_users);
     
  3. mahafue

    mahafue New Member

    Great thx! Easier than I thought... :)
     

Share This Page