View Single Post
  #11  
Old 3rd July 2012, 14:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,565
Thanks: 791
Thanked 4,979 Times in 3,900 Posts
Default

Quote:
It should be mentioned that it is necessary to use the undocumented (!) SOAP call client_get_groupid($session_id, $client_id)
Thats the function to convert the client ID to groupid, if you want to convert from one ID to another then you have to use that function of course.

Quote:
Strangely, the group_id is not included in the answers to the client_get() and client_get_by_username() functions.
The grouid is part of the response of any record, it does not amtter if you query a website or a client. print out the response with print_r(), you will see that the sys_groupid is returned. The groupid of a record is the owner group of that record and the client records are owned by the administrator or reseller that created them. So the grouipd of a client record is either the groupid of the admin or the groupid of the reseller.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links