AccountPolicy
The local password and account-lockout policy.
Returned by account_policy and
update_account_policy.
Fields
force_logoff @ (time.Duration | nil)[get]Delay before users are forcibly logged off once their valid logon hours expire, or
nilwhen forced logoff is disabled.lockout_duration @ time.Duration[get]Time a locked account stays locked.
lockout_observation_window @ time.Duration[get]Time after which the failed-logon counter resets.
lockout_threshold @ Int[get]Failed logons allowed before lockout. Zero disables lockout.
max_password_age @ (time.Duration | nil)[get]Maximum password age, or
nilwhen passwords do not expire.min_password_age @ time.Duration[get]Minimum time before a password may be changed again.
min_password_length @ Int[get]Minimum number of characters a password must have.
password_history_length @ Int[get]Number of previous passwords retained.