Set the password policy

Set the rules for IAM users' console passwords, lockouts and sign-in length, or turn IAM-user password sign-in off.

Last updated 18 November 2026View as Markdown

The policy applies to IAM users with a console password only, not to people's own email accounts.

Setting Default Range
Minimum length 12 8–128
Uppercase, lowercase, number on
Symbol off
Password expires after (days) never 1–365
Lock after wrong passwords 5 3–20, in a row from one address
Lock for (minutes) 15 1–1440
Longest sign-in (hours) 12 1–168
Console passwords for IAM users on

Prerequisites

  • Permission for iam:UpdatePasswordPolicy; to return to the defaults, iam:DeletePasswordPolicy.
  • In the console, also iam:GetPasswordPolicy: without it Organization settings show no IAM-user sign-in section. Restore defaults there also needs iam:UpdatePasswordPolicy.

Change the policy

  1. Open Organization settings.
  2. Under IAM-user sign-in, change the fields: Minimum length, Lock after wrong passwords, Lock for (minutes), Longest sign-in (hours), Password expires after (days) (empty for never), and under Every password contains, select or clear An uppercase letter, A lowercase letter, A number and A symbol.
  3. (Optional) Turn off Console passwords for IAM users.
  4. Choose Save sign-in rules.

To go back to the defaults, choose Restore defaults.

Result

New passwords follow the policy; an existing password is checked at its next change. A password older than Password expires after (days) must be changed at the next sign-in. An IAM user's console session ends after Longest sign-in (hours) even while in use.

Turning Console passwords for IAM users off signs every IAM user out and keeps their passwords; no IAM user signs in with a password until it is on again. An enforced single sign-on connection has the same effect (see Enforce single sign-on). The sign-in page tells a user this only after a correct password.

The settings also show the Sign-in link IAM users sign in at.

If it is refused

Values outside the ranges above are refused with 400.

Did this page help you?