Step 5: Create the sign-on policy action
POST {{apiPath}}/environments/{{envID}}/signOnPolicies/{{InteractiveWorkerPolicyID}}/actions
The POST /environments/{{envID}}/signOnPolicies/{{policyID}}/actions
operation creates the LOGIN
sign-on policy action resource, which is associated with the sign-on policy ({{policyID}}
) specified in the request URL. This action prompts the user to enter a username and password at sign-on.
In this use case, the priority
property in the request body is set to 1
(the highest priority) to ensure that the LOGIN
action is the first sign-on action.
Request Body
{"environment"=>{"id"=>"{{envID}}"}, "signOnPolicy"=>{"id"=>"{{InteractiveWorkerPolicyID}}"}, "priority"=>1, "type"=>"LOGIN"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |