Cubicle

List an organization's members

GET
/v1/orgs/{org}/members

Returns everyone who holds or has held a membership in the organization, people and service accounts alike, ordered by identity.

  • Removed members stay in the list with status: "revoked".
  • A deleted service account keeps its row with status: "revoked", and its identity gains # and the first 8 characters of its ID (acme/ci#8e0a2c4e).

Any active member of the organization may call this route, whatever their role. It needs a sign-in session; API keys are refused.

See Organizations and access for what each role may do.

Authorization

session
headerAuthorizationBearer <token>

A sign-in session token (jvs_…) from the Dashboard, cubicle login or the device authorization flow.

Path Parameters

org*string

The organization's ID or name. An organization where the caller is not an active member returns 404.

Response Body

The organization's members.

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.cubicle.sh/v1/orgs/acme/members'
Example Response
[  {    "id": "8e0a2c4e-6b8d-4f1a-a3c5-9e1b3d5f7a9c",    "identity": "acme/ci",    "role": "member",    "status": "active",    "serviceAccount": true  },  {    "id": "2c4e6a8b-0d1f-4e3a-9b5c-7d9f1b3d5e7a",    "identity": "ada@example.com",    "role": "admin",    "status": "active",    "serviceAccount": false  },  {    "id": "9a1c3e5f-7b9d-4e2a-8c4f-6d8b0a2c4e7f",    "identity": "grace@example.com",    "role": "owner",    "status": "active",    "serviceAccount": false  }]