PingOne Platform APIs

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:

  1. Make a POST request to {{apiPath}}/environments/{{envID}}/passwordPolicies to create the password policy you’ll use.

  2. 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.

  3. Make a POST request to {{apiPath}}/environments/{{envID}}/users to create a user, assigning the user to the population you created.

  4. Make a PUT request to {{apiPath}}/environments/{{envID}}/users/{{userID}}/password to set an initial password for the new user.

  5. Make another PUT request 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.