retrieve manage2 username for cpanel installation

rustyhex

Member
Jul 18, 2013
10
0
1
cPanel Access Level
Root Administrator
I need to check if several cpanel installations belong to one manage2 account (to be able to create one account in my service for multiple cpanel servers, belonging to one owner). I think, that cPanel stores this info, because it is required for licence checking.
 

rustyhex

Member
Jul 18, 2013
10
0
1
cPanel Access Level
Root Administrator
Thanks greatly for responses. As i understand, "company" field uniquely identifies manage2 account (which holds multiple cpanel licenses, that can be grouped), right?
 

KostonConsulting

Well-Known Member
Verifed Vendor
Jun 17, 2010
255
1
68
San Francisco, CA
cPanel Access Level
Root Administrator
Thanks greatly for responses. As i understand, "company" field uniquely identifies manage2 account (which holds multiple cpanel licenses, that can be grouped), right?
That's exactly correct. Note that a valid license has an <attributes> container rather than a <history> container like so. <history> containers are for past events like expirations and transfers:

Code:
<cpanellicenses>
<license ip="1.2.3.4">
<attributes group="Koston Consulting" status="1" expdate="unknown" company="Koston Consulting" package="KC" adddate="2011-10-28 15:28:27" valid="1"/>
</license>
</cpanellicenses>