/projects/{project_id}/members/{member_id}/roleRemove an org member's role on a projectIdempotently removes the explicit project grant. The member's organization-role default project permission still applies. Self-DELETE requires confirm_self_lockout=true when effective manage access would be lost.
Parameters
project_idstringpathrequiredmember_idstring · uuidpathrequiredconfirm_self_lockoutbooleanqueryResponses
credential_rotation_recommendedbooleanHint that database credentials may need rotation after the role change.
effective_project_permissionstringThe caller's effective permission for a project when per-project permissions are enabled. `VIEWER` grants read access, `EDITOR` adds update access, and `ADMIN` grants full management. Omitted for personal projects, flag-off organizations, and non-user subjects.
emailstring · emailEmail address of the user who has been granted access to the project.
explicit_project_permissionstringThe caller's effective permission for a project when per-project permissions are enabled. `VIEWER` grants read access, `EDITOR` adds update access, and `ADMIN` grants full management. Omitted for personal projects, flag-off organizations, and non-user subjects.
member_idstring · uuidrequirednamestringThe user's display name.
org_api_key_rotation_recommendedbooleanHint that project-scoped org API keys created by the target user may need rotation.
org_default_project_permissionstringThe caller's effective permission for a project when per-project permissions are enabled. `VIEWER` grants read access, `EDITOR` adds update access, and `ADMIN` grants full management. Omitted for personal projects, flag-off organizations, and non-user subjects.
org_rolestringrequiredOrganization-level role used by project member role management.
project_idstringrequiredproject_rolestringPer-project role. `viewer` maps to `VIEWER`, `editor` maps to `EDITOR`, and `admin` maps to `ADMIN`.
user_idstring · uuidrequired{
"credential_rotation_recommended": true,
"effective_project_permission": "ADMIN",
"email": "user@example.com",
"explicit_project_permission": "ADMIN",
"member_id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"org_api_key_rotation_recommended": true,
"org_default_project_permission": "ADMIN",
"org_role": "admin",
"project_id": "string",
"project_role": "admin",
"user_id": "00000000-0000-0000-0000-000000000000"
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}