Skip to main content

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​

NameTypeDescription
idstringUnique 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:

NameTypeRequiredDescription
login_namestringYes-
user_namestringYes-
namestringYes-
emailstringYes-
roleEntityReferenceYes-
admin_scopescope_group_member_entitiesEntityReferenceNo-
admin_scope_typestringNo-
admin_scope_scope_entitiesEntityReferenceNo-
disabledbooleanNo-
is_password_login_allowedbooleanNo-
pwd_last_modified_timelongNo-
exec_mobile_app_enabledbooleanNo-
commentsstringNo-
exec_mobile_app_tokensMobileAppTokenInfoWrapperCollectionNo-
is_auditorbooleanNo-
is_default_adminbooleanNo-
is_deprecated_default_adminbooleanNo-
is_exec_mobile_app_enabledbooleanNo-
is_password_expiredbooleanNo-
is_product_update_comm_enabledbooleanNo-
is_security_report_comm_enabledbooleanNo-
is_service_update_comm_enabledbooleanNo-
new_location_create_allowedbooleanNo-
passwordstringNo-
send_mobile_app_invitebooleanNo-
send_zdx_onboard_invitebooleanNo-

Returns: AdminUser

Example:

resource = session.ztw.AdminUser(id="your-resource-id")
resource.load()
resource.name = "Updated value"
resource.update()

Attributes​

NameTypeRequiredDescription
idintegerYes-
login_namestringYes-
user_namestringYes-
namestringYes-
emailstringYes-
roleEntityReferenceYes-
admin_scopescope_group_member_entitiesEntityReferenceNo-
admin_scope_typestringNo-
admin_scope_scope_entitiesEntityReferenceNo-
disabledbooleanNo-
is_password_login_allowedbooleanNo-
pwd_last_modified_timelongNo-
exec_mobile_app_enabledbooleanNo-
commentsstringNo-
exec_mobile_app_tokensMobileAppTokenInfoWrapperCollectionNo-
is_auditorbooleanNo-
is_default_adminbooleanNo-
is_deprecated_default_adminbooleanNo-
is_exec_mobile_app_enabledbooleanNo-
is_password_expiredbooleanNo-
is_product_update_comm_enabledbooleanNo-
is_security_report_comm_enabledbooleanNo-
is_service_update_comm_enabledbooleanNo-
new_location_create_allowedbooleanNo-
passwordstringNo-
send_mobile_app_invitebooleanNo-
send_zdx_onboard_invitebooleanNo-