Set Password Expiration Policy
By default, local directory passwords expire after 8,760 hours (365 days), following CIS recommendations. You can adjust this per-user or workspace-wide, and for break glass accounts you should set it to never expire.
Prerequisites
- Access to Guardrails with
Turbot/Adminpermissions or higher.
Step 1: Open the New Policy Setting Form
Navigate to Policies in the sidebar and click New Policy Setting in the top right to open the Create Policy Setting form.
Step 2: Select the Policy Type
For the Policy Type, search for Password Expiration Period and select Password expiration period in hours (Turbot > IAM > Local Directory > User).

Step 3: Choose the Resource and Value
For the Resource, select Turbot (the workspace root) to apply to all local users, or a specific user resource to set an expiration for just that user, which is useful for break glass accounts. Because this policy is a number, the Setting is a number field.

| Field | Description |
|---|---|
| Setting | The expiration period in hours. Range: -1 to 8760. Common values: 8760 (1 year, CIS default), 4380 (6 months), 2160 (90 days), -1 (never expire). Toggle Enable calculated mode to compute the value from a template instead. |
| Precedence | Required enforces the value on all descendants. Recommended allows exceptions. |
Click Create. The policy takes effect immediately.
[!TIP] For break glass accounts, set the expiration to
-1(never) at the individual user level rather than at the workspace root. This ensures regular users still follow your organization's rotation policy.
Troubleshooting
| Issue | Solution |
|---|---|
| Can't find the policy type | Make sure the turbot-iam mod is installed. Search for "password expiration" in the Policy Type field. |
| Policy doesn't seem to take effect | The policy applies to future password resets, not retroactively. The user's current password expiration is based on when it was last set. |
Next Steps
- Set Minimum Password Length: Configure the minimum character count for local passwords.