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

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.jobs.usersExports.create({});
}
main();
{
  "status": "pending",
  "type": "users_export",
  "id": "job_0000000000000001",
  "created_at": "<string>",
  "connection_id": "con_0000000000000001",
  "format": "json",
  "limit": 5,
  "fields": [
    {
      "name": "<string>",
      "export_as": "<string>"
    }
  ]
}

承認

Authorization
string
header
必須

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

ボディ

connection_id
string
デフォルト:con_0000000000000001

connection_id of the connection from which users will be exported.

Pattern: ^con_[A-Za-z0-9]{16}$
format
enum<string>

Format of the file. Must be json or csv.

利用可能なオプション:
json,
csv
limit
integer
デフォルト:5

Limit the number of records.

必須範囲: x >= 1
fields
object[]

List of fields to be included in the CSV. Defaults to a predefined set of fields.

レスポンス

Job created successfully.

status
string
デフォルト:pending
必須

Status of this job.

type
string
デフォルト:users_export
必須

Type of job this is.

id
string
デフォルト:job_0000000000000001
必須

ID of this job.

created_at
string

When this job was created.

connection_id
string
デフォルト:con_0000000000000001

connection_id of the connection from which users will be exported.

Pattern: ^con_[A-Za-z0-9]{16}$
format
enum<string>

Format of the file. Must be json or csv.

利用可能なオプション:
json,
csv
limit
integer
デフォルト:5

Limit the number of records.

必須範囲: x >= 1
fields
object[]

List of fields to be included in the CSV. Defaults to a predefined set of fields.