deleteAccountMember

Remove a member from the account, or leave it yourself; removing another member requires account.members.manage. Requires account.read; API keys also need delete scope.

Arguments

  • accountIdID!required

  • userIdID!required

    Member to remove. Members may remove themselves. Removing another member requires account.members.manage. Removing another owner requires account ownership authority. The account must retain at least one owner. Removing an absent member returns 404. The member also loses access to every project in the account; with require_project_lead_reassignment=true, removal is blocked with 409 while they lead active projects, which must be explicitly reassigned first. Omission preserves legacy automatic reassignment to an account owner. Projects and financial history are not touched.

  • require_project_lead_reassignmentBoolean

Responses

mutation DeleteAccountMember($accountId: ID!, $userId: ID!) {  deleteAccountMember(accountId: $accountId, userId: $userId) {    ok  }}
{  "data": {    "deleteAccountMember": {      "ok": false    }  }}

The DeletionResult! in data.deleteAccountMember.