Create a Password Policy
Number of APIs: 4
You can use password policies to create policies for specific user populations in an environment.
This use case illustrates the following operations supported by the PingOne APIs:
- Create a password policy that will be applied to a population.
- Create a population to which the password policy is applied.
- Create a user in the population.
- Set an initial password for the new user. The password must be changed when the user first signs on.
- Enable the user to update the password.
Workflow order of operations
To create and apply a password policy, you'll need to:
Make a
POST
request to{{apiPath}}/environments/{{envID}}/passwordPolicies
to create the password policy you'll use.Make a
POST
request to{{apiPath}}/environments/{{envID}}/populations
to create a population for which you'll apply the password policy. You'll specify the password policy you created as the password policy for this population.Make a
POST
request to{{apiPath}}/environments/{{envID}}/users
to create a user, assigning the user to the population you created.Make a
PUT
request to{{apiPath}}/environments/{{envID}}/users/{{userID}}/password
to set an initial password for the new user.Make another
PUT
request to{{apiPath}}/environments/{{envID}}/users/{{userID}}/password
, this time enabling the new user to specify their password.
-
Step 1: Create Password Policy POST {{apiPath}}/environments/{{envID}}/passwordPolicies
-
Step 2: Create Population POST {{apiPath}}/environments/{{envID}}/populations
-
Step 3: Create User POST {{apiPath}}/environments/{{envID}}/users
-
Step 5: Update Password (Self) PUT {{apiPath}}/environments/{{envID}}/users/{{userID}}/password