This activity shows you how to create a sign-on policy with registration enabled, initiate an authorization request, and use the flow APIs to create and verify a new user account.

The following operations are supported by the PingOne APIs:

Workflow order of operations

To create a new user through a registration flow, the following tasks must be completed successfully:

  1. Make a POST request to /environments/{environmentId}/applications to add a new application to the specified environment.

  2. Make a POST request to /environments/{environmentId}/populations to create a new population for the reistered user.

  3. Make a POST request to /environments/{environmentId}/signOnPolicies to create a new sign-on policy that enables user registration.

  4. Make a POST request to /environments/{environmentId}/signOnPolicies/{signOnPolicyId}/actions to define the registration action associated with this sign-on policy.

  5. Make a POST request to /environments/{environmentId}/applications/{applicationId}/signOnPolicyAssignments to create associate the registration sign-on policy with the application.

  6. Make a GET request to /{environmentId}/as/authorize to obtain an authorization grant. This request starts the authorization flow.

  7. Make a GET request to /{environmentId}/flows/{flowId} to get the flow.

  8. Make a POST request to /{environmentId}/flows/{flowId} to register the new user.

  9. Make a POST request to /{environmentId}/flows/{flowId} to verify the new user account.

  10. Make a GET request to /environments/{environmentId}/users/ to verify that the new user exists in the PingOne directory.

Click the Run in Postman button below to download the Postman collection for this use case.

Run in Postman