---
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:50](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/clients/am-api.ts#L50)

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
