Get Passwordcomplexity Policy
GEThttps://$CUSTOM-DOMAIN/auth/v1/policies/passwords/complexity
Returns the password complexity settings that should be used for the authenticated user. It is set either on an instance or organization level. This policy defines how the password should look.
Responses​
- 200
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
policy
object
{
"policy": {
"details": {
"sequence": "2",
"creationDate": "2025-03-05T15:24:27.888Z",
"changeDate": "2025-03-05T15:24:27.888Z",
"resourceOwner": "69629023906488334"
},
"minLength": "8",
"hasUppercase": true,
"hasLowercase": true,
"hasNumber": true,
"hasSymbol": true,
"isDefault": true
}
}
- Schema
- Example (from schema)
Schema
policy
object
{
"policy": {
"details": {
"sequence": "2",
"creationDate": "2025-03-05T15:24:27.888Z",
"changeDate": "2025-03-05T15:24:27.888Z",
"resourceOwner": "69629023906488334"
},
"minLength": "8",
"hasUppercase": true,
"hasLowercase": true,
"hasNumber": true,
"hasSymbol": true,
"isDefault": true
}
}
- Schema
- Example (from schema)
Schema
policy
object
{
"policy": {
"details": {
"sequence": "2",
"creationDate": "2025-03-05T15:24:27.889Z",
"changeDate": "2025-03-05T15:24:27.889Z",
"resourceOwner": "69629023906488334"
},
"minLength": "8",
"hasUppercase": true,
"hasLowercase": true,
"hasNumber": true,
"hasSymbol": true,
"isDefault": true
}
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/auth/v1/policies/passwords/complexity' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear