Classic APIs
ClassicOrganizationsApi
orgRoleMembers

orgRoleMembers

Gets a page of members for a specific role in an organization.

Parameters

NameTypeDescription
orgIdIdentifierThe 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.orgRoleMembers({
  orgId: "4244556007738484576",
  roleId: "4500991930780611394",
}); 

Example Data

[
  {
    userId: "45348281",
    roles: [
      {
        id: "4500991930780611394",
        organizationId: "4244556007738484576",
        name: "Orange",
        color: "Orange",
        updatedTime: 2024-05-31T03:13:24.753Z,
      },
    ],
  },
] 

Endpoint

GET /v1/organizations/{orgId}/roles/{roleId}/users