Classic APIs
ClassicOrganizationsApi
orgMembers

orgMembers

Gets a page of members for an organization.

Parameters

NameTypeDescription
orgIdOrgIdThe ID of the organization to get members for.
limit?numberThe maximum amount of members to return.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: members } = await ClassicOrganizationsApi.orgMembers({ orgId: "4244556007738484576" }); 

Example Data

[
  {
    userId: "45348281",
    roles: [
      {
        id: "914257001913009232",
        organizationId: "4244556007738484576",
        name: "Developer",
        color: "LightOrange",
        updatedTime: 2024-05-31T01:24:02.823Z,
      },
    ],
  },
] 

Endpoint

GET /v1/organizations/{orgId}/users