Remove someone from a workspace
remove_workspace_member
Removes a person from a workspace, ending their access to every site in it immediately.
Scopemembers:writeDestructive
They have to be invited again to return. This affects a real colleague, so the tool tells the client to call it only once you have named who to remove and confirmed it.
The owner cannot be removed, and trying is refused with You cannot remove the workspace owner! It needs the Manage members permission (members.manage).
The connectors they installed in the workspace are revoked, and their account email comes off the forwarding addresses of its sites where they added it themselves. See Members and roles.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
workspaceId |
string | Yes | The workspace id. |
memberId |
string | Yes | The member id, from list_workspace_members. This is the membership id, not the user id. |