Use the HCP Terraform API's `/relationships` endpoints to add and remove users from teams using an account or organization membership ID.