WorkOS PHP SDK

UserManagementOrganizationMembershipGroups
in package

Table of Contents

Properties

$client  : HttpClient

Methods

__construct()  : mixed
listOrganizationMembershipGroups()  : PaginatedResponse<string|int, Group>
List groups

Properties

Methods

listOrganizationMembershipGroups()

List groups

public listOrganizationMembershipGroups(string $omId[, string|null $before = null ][, string|null $after = null ][, int|null $limit = null ][, EventsOrder $order = EventsOrder::Desc ][, RequestOptions|null $options = null ]) : PaginatedResponse<string|int, Group>

Get a list of groups that an organization membership belongs to.

Parameters
$omId : string

Unique identifier of the Organization Membership.

$before : string|null = null

An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with "obj_123", your subsequent call can include before="obj_123" to fetch a new batch of objects before "obj_123".

$after : string|null = null

An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with "obj_123", your subsequent call can include after="obj_123" to fetch a new batch of objects after "obj_123".

$limit : int|null = null

Upper limit on the number of objects to return, between 1 and 100. Defaults to 10.

$order : EventsOrder = EventsOrder::Desc

Order the results by the creation time. Supported values are "asc" (ascending), "desc" (descending), and "normal" (descending with reversed cursor semantics where before fetches older records and after fetches newer records). Defaults to descending. Defaults to "desc".

$options : RequestOptions|null = null
Tags
throws
WorkOSException
Return values
PaginatedResponse<string|int, Group>

        
On this page

Search results