KSC Open API
Kaspersky Security Center API description
AdTenantMngr::AssignScannerTenant ( wstring  wstrScanningHost,
binary  binTenantID 
)

Assign tenantid to the Active Directory scanning host. The method may be called several times to assign several tenants to the scanning host.

Parameters:
[in]wstrScanningHost- Name ("KLHST_WKS_HOSTNAME") of the scanning host if scanning host is UA, empty string if scanning host is Administration Server.
[in]binTenantID- Tenant id to assign, binary value of 16 bytes length.
Exceptions:
STDE_NOACCESSattempt to assign tenant without write access to the host
STDE_NOTPERMattempt to assign tenant to the host which is not UA