KSC Open API
Kaspersky Security Center API description
ExtTenant::SetExternalTenantId ( int  nVServerId,
wstring  wstrTenantID 
)

Sets external tenant id.

Parameters:
[in]nVServerId- VServer Id. 0 for main server, -1 for current connected vserver
[in]wstrTenantID- Tennant Id. Empty string means "reset to default". Max length 128 chars.