Step 4: Create the sign-on policy action with registration enabled
POST {{apiPath}}/environments/{{envID}}/signOnPolicies/{{registrationPolicyID}}/actions
The POST /environments/{{envID}}/signOnPolicies/{{policyID}}/actions
operation creates the new sign-on policy action resource, which is associated with the sign-on policy ({{policyID}}
) specified in the request URL.
PingOne supports several sign-on policy action types. In this use case, the type
property is set to the LOGIN
action type, and it includes the registration
property set to true
in the request body.
Request Body
{"environment"=>{"id"=>"{{envID}}"}, "signOnPolicy"=>{"id"=>"{{registrationPolicyID}}"}, "priority"=>10, "type"=>"LOGIN", "registration"=>{"enabled"=>true, "population"=>{"id"=>"{{registrationPopID}}"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |