Adding mail domain, but missing client_id from domain

Discussion in 'General' started by KoS, Nov 21, 2013.

  1. KoS

    KoS Member HowtoForge Supporter


    my goal is to use the list of all domains
    web: client -> domains
    api: domains_domain_get (1)
    and to add corresponding mail domains
    api: mail_domain_add (2)

    (1) gives me the sys_groupid of the domain, but for adding the mail domain i need in (2) the client_id.

    i suppose the mapping is available in the mysql table sys_user. is this mapping somewhere in an API function? or how do i accomplish that?

    i thought that the sys_groupid is only for "internal reference" and the "client_id" is the id that should be used for all references? so why doesn't (1) return the client_id?


  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Use remoting function client_get_id($session_id, $sys_userid)
  3. KoS

    KoS Member HowtoForge Supporter

    perfect, thanks. somehow i missed that one :-(

Share This Page