# Create Cognito external user source Create a new external user source. A valid environment token is required to call this endpoint. Endpoint: POST /resources/user-sources/v1/external/cognito Security: bearer ## Request fields (application/json): - `name` (string, required) The user source name - `configuration` (object, required) User source configuration - `configuration.syncOnLogin` (boolean, required) Whether to sync user profile attributes on each login - `configuration.isMigrated` (boolean, required) Whether to migrate the users - `configuration.region` (string, required) The aws region of the cognito user pool - `configuration.clientId` (string, required) The cognito app client id - `configuration.userPoolId` (string, required) The id of the cognito user pool - `configuration.accessKeyId` (string, required) The access key of the aws account - `configuration.secretAccessKey` (string, required) The secret of the aws account - `configuration.clientSecret` (string) The cognito application client secret, required if the app client is configured with a client secret - `configuration.tenantConfig` (any, required) - `appIds` (array) The application Ids to assign to this user source - `index` (number, required) The user source index - `description` (string) The user source description ## Response 201 fields (application/json): - `id` (string, required) - `name` (string, required) - `type` (string, required) - `appIds` (array, required) - `description` (string, required) - `index` (number, required)