When the response to the asynchronous request to create the tenant returns before the tenant is in the Active state, the returned Tenant object does not contain the Administrator object.
It takes a certain amount of time for Deep Security Manager to create the tenant, and during that time the tenant is in the Created state. When it is done being created it will be in the Active state and is operational. Once active, you can get the administrator by searching or listing all.
If you make a synchronous call, however, you will receive the response only after the tenant is created an is in the Active state. Therefore, the response will include all of the information that you expect.
Your call would look like this, setting the asynchronous
parameter to False(Python SDK):
tenants_api = api.TenantsApi(api.ApiClient(configuration))
returned_tenant = tenants_api.create_tenant(tenant, api_version, confirmation_required=False, asynchronous=False)
I added some content to the guide about this: https://automation.deepsecurity.trendmicro.com/article/12_0/create-tenant?platform=on-premise
Hope that helps -- I'm a content developer for Deep Security, btw.