Create a Password Policy
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
POSTrequest to{{apiPath}}/environments/{{envID}}/passwordPoliciesto create the password policy you’ll use. -
Make a
POSTrequest to{{apiPath}}/environments/{{envID}}/populationsto 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
POSTrequest to{{apiPath}}/environments/{{envID}}/usersto create a user, assigning the user to the population you created. -
Make a
PUTrequest to{{apiPath}}/environments/{{envID}}/users/{{userID}}/passwordto set an initial password for the new user. -
Make another
PUTrequest to{{apiPath}}/environments/{{envID}}/users/{{userID}}/password, this time enabling the new user to specify their password.
Click the Run in Postman button below to fork, or download and import, the Postman collection for this workflow to your workspace.