For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get an organization member by its ID

Available in MCP
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
userIdstringRequired

The unique ID of the User

Responses
200

OK

application/json
objectstring · enumRequired

Type of Object, always equals to "member"

Possible values:
idstringRequired

Unique identifier for the user.

rolestring · enum · nullableRequired

The role of a member in an organization, null for guests

Possible values:
disabledone ofRequired

Why the member is disabled, or false when the member is active. A disabled member cannot access the organization or its content.

boolean · enumOptionalPossible values:
or
string · enumOptional

Why a member is disabled in an organization. "billing": The organization's plan has reached its maximum number of members. "scim": The member was deactivated by the organization's identity provider. "admin": An organization admin disabled the member.

Possible values:
joinedAtstring · date-timeRequired

Date at which the user joined the organization.

lastSeenAtstring · date-timeOptional

Date at which the user was last seen active in the organization.

ssobooleanRequired

Whether the user can login with SSO.

spacesnumberRequired
teamsnumberRequired
sitesnumberRequired
get/orgs/{organizationId}/members/{userId}
GET /v1/orgs/{organizationId}/members/{userId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "object": "member",
  "id": "text",
  "role": "admin",
  "user": {
    "object": "user",
    "id": "text",
    "displayName": "text",
    "email": "text",
    "photoURL": "text",
    "urls": {
      "location": "https://example.com"
    }
  },
  "disabled": false,
  "joinedAt": "2026-01-01T00:00:00.000Z",
  "lastSeenAt": "2026-01-01T00:00:00.000Z",
  "sso": true,
  "spaces": 1,
  "teams": 1,
  "sites": 1
}

Last updated

Was this helpful?

Powered by GitBook