The POST /users/self/passwordPolicy
endpoint gets a list of password policy rules for the user making the request.
Header parameters in Requests (User Admin API) apply to this endpoint.
Authorization scopes supported:
Scope | Access granted |
---|---|
users:write | Entire endpoint |
self:write | Entire endpoint |
Requests
curl -L -X GET "https://***.api.newvoicemedia.com/useradmin/users/self/passwordPolicy" \ -H "Accept: application/vnd.newvoicemedia.v4+json" \ -H "Authorization: Bearer <ACCESS_TOKEN>" |
Responses contain a list of all password policy rules for requesting user.
Successful requests return a 200 Success
code and the created user.
{ "expires": true, "expiresAfterDays": 30, "rules": { "minLength": 4, "minLowerCase": 1, "minUpperCase": 1, "minDigits": 1, "minSpecialChars": 1 }, "changeable": true } |
where:
expires
. Defines if the password should expire for the user making the request.
expiresAfterDays
. Number of days after which the password will expire.
rules
. List of password policy rules.
minLength
. Minimum length of the password.
minLowerCase
. Minimum number of lowercase characters.
minUpperCase
. Minimum number of uppercase characters.
minDigits
. Minimum number of digits.
minSpecialChars
. Minimum number of special characters.