Step 2: Create a Population
POST {{apiPath}}/environments/{{envID}}/populations
Use POST /environments/{{envID}}/populations/
to create a new population resource in the specified environment.
Here, we'll set the password policy to the one we created specifically for users in the LDAP directory. If we don't specify a password policy, the population uses the default password policy for the environment.
Property | Type | Required? |
---|---|---|
description | String | Optional |
name | String | Required |
passwordPolicy.id | String | Optional |
See the Populations data model for full property descriptions.
Request Body
{"name"=>"LDAP Gateway Population", "description"=>"Population for users having credentials in an external LDAP directory.", "passwordPolicy"=>{"id"=>"{{ldapGatewayPolicy}}"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |