[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eAlloyDB for PostgreSQL uses database flags to enforce specific password policies, detailed on this page.\u003c/p\u003e\n"],["\u003cp\u003eSeveral flags control password complexity, including minimum and maximum limits for uppercase, lowercase, numerical, and special characters, along with overall password length.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epassword.enforce_expiration\u003c/code\u003e flag manages password lifetime, and the \u003ccode\u003epassword.expiration_in_days\u003c/code\u003e flag specifies how long a password is valid, with \u003ccode\u003epassword.notify_expiration_in_days\u003c/code\u003e to setup notifications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epassword.enforce_password_does_not_contain_username\u003c/code\u003e flag can be enabled to prohibit the inclusion of the username within the password.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epassword.enforce_complexity\u003c/code\u003e flag, when enabled, dictates that new passwords must adhere to the complexity guidelines set by other password flags.\u003c/p\u003e\n"]]],[],null,["# Password policy flags\n\nSelect a documentation version: 15.7.0keyboard_arrow_down\n\n- [Current (16.8.0)](/alloydb/omni/current/docs/reference/password-policy-flags)\n- [16.8.0](/alloydb/omni/16.8.0/docs/reference/password-policy-flags)\n- [16.3.0](/alloydb/omni/16.3.0/docs/reference/password-policy-flags)\n- [15.12.0](/alloydb/omni/15.12.0/docs/reference/password-policy-flags)\n- [15.7.1](/alloydb/omni/15.7.1/docs/reference/password-policy-flags)\n- [15.7.0](/alloydb/omni/15.7.0/docs/reference/password-policy-flags)\n\n\u003cbr /\u003e\n\nThis page describes the database flags that AlloyDB for PostgreSQL uses to enforce a set of restrictions specific to their [password policy](/alloydb/docs/manage-password-policy). For a list of all database flags that AlloyDB supports, see [Supported database flags](/alloydb/docs/reference/database-flags).\n\n\u003cbr /\u003e\n\n`password.enforce_password_does_not_contain_username`\n-----------------------------------------------------\n\nIf `on`, prohibits using a username as part of a password. This password policy\nis case sensitive, so if a username is `Alex`, then a password that contains\n`alex` is allowed.\n\n`password.enforce_expiration`\n-----------------------------\n\nManages a lifetime of a password.\n\n`password.enforce_complexity`\n-----------------------------\n\nEnforces the password complexity policy when new passwords must meet the guidelines specified by other password flags.\n\n`password.expiration_in_days`\n-----------------------------\n\nRequires passwords to be changed within the specified number of days.\n\n`password.min_uppercase_letters`\n--------------------------------\n\nSets the minimum number of uppercase letters for a password.\n\n`password.max_uppercase_letters`\n--------------------------------\n\nSets the maximum number of uppercase letters for a password.\n\n`password.min_lowercase_letters`\n--------------------------------\n\nSets the minimum number of lowercase letters for a password.\n\n`password.max_lowercase_letters`\n--------------------------------\n\nSets the maximum number of lowercase letters for a password.\n\n`password.min_numerical_chars`\n------------------------------\n\nSets the minimum number of numerical characters for a password.\n\n`password.max_numerical_chars`\n------------------------------\n\nSets the maximum number of numerical characters for a password.\n\n`password.min_special_chars`\n----------------------------\n\nSets the minimum number of special characters for a password.\n\n`password.max_special_chars`\n----------------------------\n\nSets the maximum number of special characters for a password.\n\n`password.min_pass_length`\n--------------------------\n\nSpecifies the minimum number of characters allowed in a password.\n\n`password.max_pass_length`\n--------------------------\n\nSets the maximum number of characters allowed in a password.\n\n`password.notify_expiration_in_days`\n------------------------------------\n\nSets the number of days when a user starts receiving notifications that their password is about to expire."]]