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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / hasAccountManagerTenantRole

# Function: hasAccountManagerTenantRole()

> **hasAccountManagerTenantRole**(`claims`, `role`, `tenant`): `boolean`

Defined in: [packages/b2c-tooling-sdk/src/auth/account-manager-claims.ts:216](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/auth/account-manager-claims.ts#L216)

Whether the claims grant a role on a tenant, according to `tenantFilter`.
Tenant IDs are compared case-insensitively, with `-` treated as `_`
(`zzzz-001` matches `zzzz_001`); the `f_ecom_` prefix is ignored.

## Parameters

### claims

`Pick`\<[`AccountManagerClaims`](../interfaces/AccountManagerClaims.md), `"tenantFilter"`\>

### role

`string`

### tenant

`string`

## Returns

`boolean`
