GetPasswordPolicy

Last Updated: Aug 25, 2016

Interface description

 Obtains the password policy of a user, including the password strength.

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation interface, required. The parameter value is “GetPasswordPolicy”.

Return parameters

PasswordPolicy

Required permissions

Action

ram:GetPasswordPolicy

Resource

acs:ram:*:${AccountId}:*

Operation examples

Request example

  1. https://ram.aliyuncs.com/?Action=GetPasswordPolicy
  2. &AcccountAlias=myalias
  3. &<Public request parameters>

Return example

XML format

  1. <GetPasswordPolicyResponse>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. <PasswordPolicy>
  4. <MinimumPasswordLength>12</MinimumPasswordLength>
  5. <RequireLowercaseCharacters>true</RequireLowercaseCharacters>
  6. <RequireUppercaseCharacters>true</RequireUppercaseCharacters>
  7. <RequireNumbers>true</RequireNumbers>
  8. <RequireSymbols>true</RequireSymbols>
  9. </PasswordPolicy>
  10. </GetPasswordPolicyResponse>

JSON format

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  3. "PasswordPolicy": {
  4. "MinimumPasswordLength": 12,
  5. "RequireLowercaseCharacters": true,
  6. "RequireUppercaseCharacters": true,
  7. "RequireNumbers": true,
  8. "RequireSymbols": true
  9. }
  10. }
Thank you! We've received your feedback.