> ## Documentation Index
> Fetch the complete documentation index at: https://plain-docs-orca-916-agent-docs-restructure.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set customer tenants

> Replace all of a customer's tenants at once, rather than adding or removing individually.

You can also set all tenants for a customer. Unlike the more specific add or remove mutations this is useful if you are sycing tenants and customers with Plain.

<Snippet file="graphql/sdk-note.mdx" />

This operation requires the following permissions:

* `customer:edit`
* `customerTenantMembership:create`
* `customerTenantMembership:delete`

<Snippet file="graphql/set-customer-tenants.mdx" />
