UserPassword
User Password resource for Zscaler Client Connector.
Resource operations
This resource does not support standard CRUDL methods. Each action listed below is a custom action that takes explicit keyword arguments and returns a value.
Quick Start
import zssdk
import logging
# Enable debug logging for UserPassword
logging.getLogger('zssdk.zcc').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",
)
# Call get_passwords on UserPassword
resource = session.zcc.UserPassword()
result = resource.get_passwords(username="example-username", os_type=3600)
print(result)
# Debug output shows HTTP request/response details
Actions
get_passwords()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | - |
os_type | integer | Yes | - |
Returns: UserPassword
Example:
resource = session.zcc.UserPassword()
result = resource.get_passwords(username="example-username", os_type=3600)
print(result)
manage_password()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
device_type | integer | Yes | - |
exit_pass | string | Yes | - |
logout_pass | string | Yes | - |
policy_name | string | Yes | - |
uninstall_pass | string | No | - |
zad_disable_pass | string | No | - |
zdp_disable_pass | string | No | - |
zdx_disable_pass | string | No | - |
zia_disable_pass | string | No | - |
zpa_disable_pass | string | No | - |
Returns: ManagePasswordResponse
Example:
resource = session.zcc.UserPassword()
result = resource.manage_password(device_type=3600, exit_pass="value", logout_pass="value", policy_name="example-policy-name")
print(result)
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
exit_pass | string | No | - |
logout_pass | string | No | - |
uninstall_pass | string | No | - |
zd_settings_access_pass | string | No | - |
zdx_disable_pass | string | No | - |
zia_disable_pass | string | No | - |
zpa_disable_pass | string | No | - |
Related
- UserPassword - Data structure definition
- Logging guide - enable verbose logs while debugging this resource