メインコンテンツへスキップ
POST
/
jobs
/
users-imports
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.jobs.usersImports.create(, {
        connectionId: "connection_id",
    });
}
main();
{
  "status": "pending",
  "type": "users_import",
  "created_at": "<string>",
  "id": "job_0000000000000001",
  "connection_id": "con_0000000000000001",
  "external_id": "<string>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ボディ

multipart/form-data
users
string
必須
connection_id
string
デフォルト:con_0000000000000001
必須

connection_id of the connection to which users will be imported.

Pattern: ^con_[A-Za-z0-9]{16}$
upsert
boolean
デフォルト:false

Whether to update users if they already exist (true) or to ignore them (false).

external_id
string

Customer-defined ID.

send_completion_email
boolean
デフォルト:true

Whether to send a completion email to all tenant owners when the job is finished (true) or not (false).

レスポンス

Job successfully created.

status
string
デフォルト:pending
必須

Status of this job.

type
string
デフォルト:users_import
必須

Type of job this is.

created_at
string
必須

When this job was created.

id
string
デフォルト:job_0000000000000001
必須

ID of this job.

connection_id
string
デフォルト:con_0000000000000001
必須

connection_id of the connection to which users will be imported.

Pattern: ^con_[A-Za-z0-9]{16}$
external_id
string

Customer-defined ID.