Step 1: Create the Password Policy
POST {{apiPath}}/environments/{{envID}}/passwordPolicies
The POST /environments/{{envID}}/passwordPolicies
operation creates a password policy for the specified environment.
Property | Type | Required? |
---|---|---|
bypassPolicy | Boolean | Optional |
default | Boolean | Required |
description | String | Optional |
excludesCommonlyUsed | Boolean | Required |
excludesProfileData | Boolean | Required |
history.count | Integer | Optional |
history.retentionDays | Integer | Optional |
length.max | Integer | Optional |
length.min | Integer | Optional |
lockout.durationSeconds | Integer | Optional |
lockout.failureCount | Integer | Optional |
maxAgeDays | Integer | Optional |
maxRepeatedCharacters | Integer | Optional |
minAgeDays | Integer | Optional |
minCharacters | String[] | Optional |
minComplexity | Integer | Optional |
minUniqueCharacters | Integer | Optional |
name | String | Required |
notSimilarToCurrent | Boolean | Required |
See the Password policies data model for full property descriptions.
Request Body
{"name"=>"LDAP Gateway Policy", "description"=>"A policy for the external LDAP directory", "excludesProfileData"=>true, "notSimilarToCurrent"=>true, "excludesCommonlyUsed"=>true, "minComplexity"=>7, "maxAgeDays"=>182, "minAgeDays"=>1, "history"=>{"count"=>8, "retentionDays"=>365}, "lockout"=>{"failureCount"=>3, "durationSeconds"=>900}, "default"=>false}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |