ZITADEL Docs
APIsCore ResourcesV2Settings

GetPasswordComplexitySettings

Get Password Complexity Settings

Get the password complexity settings for the requested context. This can be the instance or an organization. In case of an organization, the returned settings will fall back to the instance settings if not explicitly set on the organization.

Required permissions:

  • policy.read
GET
/v2/settings/password/complexity

Query Parameters

ctx.orgId?string
ctx.instance?boolean

Response Body

application/json

application/json

curl -X GET "https://loading/v2/settings/password/complexity"
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  },
  "settings": {
    "minLength": 0,
    "requiresUppercase": true,
    "requiresLowercase": true,
    "requiresNumber": true,
    "requiresSymbol": true,
    "resourceOwnerType": "RESOURCE_OWNER_TYPE_UNSPECIFIED"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?