Update an organization member
A unique entity identifier
^[a-zA-Z0-9_-]+$The unique ID of the User
The role of a member in an organization, null for guests
Disable or re-enable the member. Only members disabled by an admin can be re-enabled.
The member has been updated
Type of Object, always equals to "member"
Unique identifier for the user.
The role of a member in an organization, null for guests
Why the member is disabled, or false when the member is active. A disabled member cannot access the organization or its content.
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.
Date at which the user joined the organization.
Date at which the user was last seen active in the organization.
Whether the user can login with SSO.
PATCH /v1/orgs/{organizationId}/members/{userId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"role": "admin",
"disabled": true
}The member has been updated
{
"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?