WorkOS PHP SDK

CreateGroupRoleAssignment
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$resourceExternalId  : string|null
The external ID of the resource.
$resourceId  : string|null
The ID of the resource. Omit along with the external-id fields to target the organization itself.
$resourceTypeSlug  : string|null
The resource type slug.
$roleSlug  : string
The slug of the role to assign to the group.

Methods

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

Properties

$resourceId

The ID of the resource. Omit along with the external-id fields to target the organization itself.

public string|null $resourceId = null

Methods

__construct()

public __construct(string $roleSlug[, string|null $resourceId = null ][, string|null $resourceExternalId = null ][, string|null $resourceTypeSlug = null ]) : mixed
Parameters
$roleSlug : string
$resourceId : string|null = null
$resourceExternalId : string|null = null
$resourceTypeSlug : 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>
On this page

Search results