> ## Documentation Index
> Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Set customer accounts

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

You can also set all accounts for a customer. Unlike the more specific add or remove mutations this is useful if you are sycing accounts 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-accounts.mdx" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.