AdminUser
Admin User resource for Zscaler Cloud & Branch Connector.
Resource operations
This resource supports the following standard methods: load(), update(). They operate on the instance state — set properties with dot notation, then call the method with no arguments.
Quick Start
import zssdk
import logging
# Enable debug logging for AdminUser
logging.getLogger('zssdk.ztw').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)
session = zssdk.Session(
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)
# Get a specific AdminUser
resource = session.ztw.AdminUser(id="your-resource-id")
resource.load()
print(resource)
# Debug output shows HTTP request/response details
Identifiers
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier |
Actions
load()
Fetches an existing AdminUser by id. Only the id identifier is required; load() takes no other arguments.
Returns: AdminUser
Example:
resource = session.ztw.AdminUser(id="your-resource-id")
resource.load()
print(resource.name)
update()
Updates an existing AdminUser. Call load() first, modify properties, then call update() — this method takes no arguments.
Properties for update:
| Name | Type | Required | Description |
|---|---|---|---|
login_name | string | Yes | - |
user_name | string | Yes | - |
name | string | Yes | - |
email | string | Yes | - |
role | EntityReference | Yes | - |
admin_scopescope_group_member_entities | EntityReference | No | - |
admin_scope_type | string | No | - |
admin_scope_scope_entities | EntityReference | No | - |
disabled | boolean | No | - |
is_password_login_allowed | boolean | No | - |
pwd_last_modified_time | long | No | - |
exec_mobile_app_enabled | boolean | No | - |
comments | string | No | - |
exec_mobile_app_tokens | MobileAppTokenInfoWrapperCollection | No | - |
is_auditor | boolean | No | - |
is_default_admin | boolean | No | - |
is_deprecated_default_admin | boolean | No | - |
is_exec_mobile_app_enabled | boolean | No | - |
is_password_expired | boolean | No | - |
is_product_update_comm_enabled | boolean | No | - |
is_security_report_comm_enabled | boolean | No | - |
is_service_update_comm_enabled | boolean | No | - |
new_location_create_allowed | boolean | No | - |
password | string | No | - |
send_mobile_app_invite | boolean | No | - |
send_zdx_onboard_invite | boolean | No | - |
Returns: AdminUser
Example:
resource = session.ztw.AdminUser(id="your-resource-id")
resource.load()
resource.name = "Updated value"
resource.update()
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | - |
login_name | string | Yes | - |
user_name | string | Yes | - |
name | string | Yes | - |
email | string | Yes | - |
role | EntityReference | Yes | - |
admin_scopescope_group_member_entities | EntityReference | No | - |
admin_scope_type | string | No | - |
admin_scope_scope_entities | EntityReference | No | - |
disabled | boolean | No | - |
is_password_login_allowed | boolean | No | - |
pwd_last_modified_time | long | No | - |
exec_mobile_app_enabled | boolean | No | - |
comments | string | No | - |
exec_mobile_app_tokens | MobileAppTokenInfoWrapperCollection | No | - |
is_auditor | boolean | No | - |
is_default_admin | boolean | No | - |
is_deprecated_default_admin | boolean | No | - |
is_exec_mobile_app_enabled | boolean | No | - |
is_password_expired | boolean | No | - |
is_product_update_comm_enabled | boolean | No | - |
is_security_report_comm_enabled | boolean | No | - |
is_service_update_comm_enabled | boolean | No | - |
new_location_create_allowed | boolean | No | - |
password | string | No | - |
send_mobile_app_invite | boolean | No | - |
send_zdx_onboard_invite | boolean | No | - |
Related
- AdminUser - Data structure definition
- Logging guide - enable verbose logs while debugging this resource