ZITADEL Docs
APIsCore ResourcesV2Settings

GetPasswordExpirySettings

Get Password Expiry Settings

Get the password expiry 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/expiry

Query Parameters

ctx.orgId?string
ctx.instance?boolean

Response Body

application/json

application/json

curl -X GET "https://loading/v2/settings/password/expiry"
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  },
  "settings": {
    "maxAgeDays": 0,
    "expireWarnDays": 0,
    "resourceOwnerType": "RESOURCE_OWNER_TYPE_UNSPECIFIED"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?