WorkOS PHP SDK

UserRoleAssignmentSource
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The origin of the role assignment.

Table of Contents

Interfaces

JsonSerializable

Properties

$groupRoleAssignmentId  : string|null
The ID of the group role assignment the role was derived from, or null if direct.
$type  : UserRoleAssignmentSourceType
Whether the role was assigned directly or derived from a group.

Methods

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

Properties

$groupRoleAssignmentId

The ID of the group role assignment the role was derived from, or null if direct.

public string|null $groupRoleAssignmentId

Methods

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>
On this page

Search results