WorkOS PHP SDK

UserOrganizationMembershipBaseListData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$customAttributes  : array<string, mixed>|null
An object containing IdP-sourced attributes from the linked [Directory User](https://workos.com/docs/reference/directory-sync/directory-user) or [SSO Profile](https://workos.com/docs/reference/sso/profile). Directory User attributes take precedence when both are linked.
$directoryManaged  : bool
Whether this organization membership is managed by a directory sync connection.
$id  : string
The unique ID of the organization membership.
$object  : string
Distinguishes the organization membership object.
$organizationId  : string
The ID of the organization which the user belongs to.
$organizationName  : string|null
The name of the organization which the user belongs to.
$status  : OrganizationMembershipStatus
The status of the organization membership. One of `active`, `inactive`, or `pending`.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.
$userId  : string
The ID of the user.

Methods

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

Properties

$customAttributes

An object containing IdP-sourced attributes from the linked [Directory User](https://workos.com/docs/reference/directory-sync/directory-user) or [SSO Profile](https://workos.com/docs/reference/sso/profile). Directory User attributes take precedence when both are linked.

public array<string, mixed>|null $customAttributes = null

Methods

__construct()

public __construct(string $object, string $id, string $userId, string $organizationId, OrganizationMembershipStatus $status, bool $directoryManaged, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt[, string|null $organizationName = null ][, array<string|int, mixed>|null $customAttributes = null ]) : mixed
Parameters
$object : string
$id : string
$userId : string
$organizationId : string
$status : OrganizationMembershipStatus
$directoryManaged : bool
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$organizationName : string|null = null
$customAttributes : array<string|int, mixed>|null = null

jsonSerialize()

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

        
On this page

Search results