WorkOS PHP SDK

UserCreateResponse
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$email  : string
The email address of the user.
$emailVerified  : bool
Whether the user's email has been verified.
$externalId  : string|null
The external ID of the user.
$firstName  : string|null
The first name of the user.
$id  : string
The unique ID of the user.
$lastName  : string|null
The last name of the user.
$lastSignInAt  : DateTimeImmutable|null
The timestamp when the user last signed in.
$locale  : string|null
The user's preferred locale.
$metadata  : array<string, string>|null
Object containing metadata key/value pairs associated with the user.
$name  : string|null
The user's full name.
$object  : string
Distinguishes the user object.
$profilePictureUrl  : string|null
A URL reference to an image representing the user.
$radarAuthAttemptId  : string|null
The ID of the Radar authentication attempt created for this request when Radar is enabled. Pass this value to the authenticate endpoint to associate the subsequent authentication with this Radar attempt.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$emailVerified

Whether the user's email has been verified.

public bool $emailVerified

$lastSignInAt

The timestamp when the user last signed in.

public DateTimeImmutable|null $lastSignInAt

$metadata

Object containing metadata key/value pairs associated with the user.

public array<string, string>|null $metadata = null

$profilePictureUrl

A URL reference to an image representing the user.

public string|null $profilePictureUrl

$radarAuthAttemptId

The ID of the Radar authentication attempt created for this request when Radar is enabled. Pass this value to the authenticate endpoint to associate the subsequent authentication with this Radar attempt.

public string|null $radarAuthAttemptId = null

Methods

__construct()

public __construct(string $object, string $id, string|null $firstName, string|null $lastName, string|null $profilePictureUrl, string $email, bool $emailVerified, string|null $externalId, DateTimeImmutable|null $lastSignInAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt[, string|null $name = null ][, array<string|int, mixed>|null $metadata = null ][, string|null $locale = null ][, string|null $radarAuthAttemptId = null ]) : mixed
Parameters
$object : string
$id : string
$firstName : string|null
$lastName : string|null
$profilePictureUrl : string|null
$email : string
$emailVerified : bool
$externalId : string|null
$lastSignInAt : DateTimeImmutable|null
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$name : string|null = null
$metadata : array<string|int, mixed>|null = null
$locale : string|null = null
$radarAuthAttemptId : string|null = null

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results