---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / isValidRoleTenantFilter

# Function: isValidRoleTenantFilter()

> **isValidRoleTenantFilter**(`value`): `boolean`

Defined in: [packages/b2c-tooling-sdk/src/clients/am-api.ts:51](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b099fb909260c5c00c90ca9da612a7f50c1328d4/packages/b2c-tooling-sdk/src/clients/am-api.ts#L51)

Validates whether a string matches the Account Manager role tenant filter format.

Format: `ROLE_ENUM:realm_instance(,realm_instance)*(;ROLE_ENUM:...)*`
Examples: `SALESFORCE_COMMERCE_API:abcd_prd` or `bm-admin:tenant1,tenant2;ECOM_USER:wxyz_stg`

## Parameters

### value

`string`

The string to validate

## Returns

`boolean`

True if the value matches the role tenant filter format, false otherwise
