public function Jobs::importUsers in Auth0 Single Sign On 8.2
Parameters
string $file_path:
string $connection_id:
array $params:
Return value
mixed
File
- vendor/
auth0/ auth0-php/ src/ API/ Management/ Jobs.php, line 39
Class
Namespace
Auth0\SDK\API\ManagementCode
public function importUsers($file_path, $connection_id, $params = []) {
$request = $this->apiClient
->method('post', false)
->addPath('jobs')
->addPath('users-imports')
->addFile('users', $file_path)
->addFormParam('connection_id', $connection_id);
if (isset($params['upsert'])) {
$request
->addFormParam('upsert', filter_var($params['upsert'], FILTER_VALIDATE_BOOLEAN));
}
if (isset($params['send_completion_email'])) {
$request
->addFormParam('send_completion_email', filter_var($params['send_completion_email'], FILTER_VALIDATE_BOOLEAN));
}
if (!empty($params['external_id'])) {
$request
->addFormParam('external_id', $params['external_id']);
}
return $request
->call();
}