Auth0-PHP

JobsInterface
in

Interface JobsInterface.

Table of Contents

createExportUsers()  : ResponseInterface
Export all users to a file via a long-running job.
createImportUsers()  : ResponseInterface
Import users from a formatted file into a connection via a long-running job.
createSendVerificationEmail()  : ResponseInterface
Create a verification email job.
get()  : ResponseInterface
Retrieves a job. Useful to check its status.
getErrors()  : ResponseInterface
Retrieve error details of a failed job.

Methods

createExportUsers()

Export all users to a file via a long-running job.

public createExportUsers(array<string|int, mixed> $body[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: read:users.

Parameters
$body : array<string|int, mixed>

Body content to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports
Return values
ResponseInterface

createImportUsers()

Import users from a formatted file into a connection via a long-running job.

public createImportUsers(string $filePath, string $connectionId[, array<string, bool|int|string>|null $parameters = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scopes:

  • create:users
  • read:users.
Parameters
$filePath : string

path to formatted file to import

$connectionId : string

id of the Connection to use

$parameters : array<string, bool|int|string>|null = null

Optional.Additional query parameters to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid filePath or connectionId are provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Jobs/post_users_imports
Return values
ResponseInterface

createSendVerificationEmail()

Create a verification email job.

public createSendVerificationEmail(string $userId[, array<string|int, mixed>|null $body = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: update:users.

Parameters
$userId : string

user ID of the user to send the verification email to

$body : array<string|int, mixed>|null = null

Optional. Additional body content to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid userId is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Jobs/post_verification_email
Return values
ResponseInterface

get()

Retrieves a job. Useful to check its status.

public get(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scopes:

  • create:users
  • read:users.
Parameters
$id : string

job (by it's ID) to query

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Jobs/get_jobs_by_id
Return values
ResponseInterface

getErrors()

Retrieve error details of a failed job.

public getErrors(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scopes:

  • create:users
  • read:users.
Parameters
$id : string

job (by it's ID) to query

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Jobs/get_errors
Return values
ResponseInterface

Search results