Skip to main content

AuthSettings

Auth Settings resource for Zscaler Internet Access.

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. Any other 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 AuthSettings
logging.getLogger('zssdk.zia').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_auth_settings_lite on AuthSettings
resource = session.zia.AuthSettings()
result = resource.get_auth_settings_lite()
print(result)

# Debug output shows HTTP request/response details

Actions​

get_auth_settings_lite()​

Parameters:

NameTypeRequiredDescription
versionintegerNo-

Returns: AuthSettings

Example:

resource = session.zia.AuthSettings()
result = resource.get_auth_settings_lite()
print(result)

load()​

Fetches an existing AuthSettings by id. Only the id identifier is required; load() takes no other arguments.

Returns: AuthSettings

Example:

resource = session.zia.AuthSettings()
resource.load()
print(resource.auth_frequency)

update()​

Updates an existing AuthSettings. Call load() first, modify properties, then call update() — this method takes no arguments.

Properties for update:

NameTypeRequiredDescription
auth_custom_frequencyintegerNo-
auth_frequencystringNo-
auto_provisionbooleanNo-
directory_sync_migrate_to_scim_enabledbooleanYes-
kerberos_enabledbooleanYes-
kerberos_pwdstringYes-
last_sync_end_timeintegerNo-
last_sync_start_timeintegerNo-
mobile_admin_saml_idp_enabledbooleanYes-
one_time_authstringYes-
org_auth_typestringYes-
password_expirystringYes-
password_strengthstringYes-
saml_enabledbooleanYes-

Returns: AuthSettings

Example:

resource = session.zia.AuthSettings(id="your-resource-id")
resource.load()
resource.auth_frequency = "Updated value"
resource.update()

Attributes​

NameTypeRequiredDescription
auth_custom_frequencyintegerNo-
auth_frequencystringNo-
auto_provisionbooleanNo-
directory_sync_migrate_to_scim_enabledbooleanYes-
kerberos_enabledbooleanYes-
kerberos_pwdstringYes-
last_sync_end_timeintegerNo-
last_sync_start_timeintegerNo-
mobile_admin_saml_idp_enabledbooleanYes-
one_time_authstringYes-
org_auth_typestringYes-
password_expirystringYes-
password_strengthstringYes-
saml_enabledbooleanYes-