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

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

# Interface: AccountManagerClaims

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

Claims read from an Account Manager access token.

## Properties

### clientId?

> `optional` **clientId**: `string`

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

Client the token was issued to (`client_id`, falling back to `azp`).

***

### expires?

> `optional` **expires**: `Date`

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

Expiry, from the `exp` claim.

***

### grantType?

> `optional` **grantType**: `string`

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

OAuth grant that produced the token, such as `authorization_code` (user
sign-in), `implicit`, `client_credentials` or
`urn:ietf:params:oauth:grant-type:jwt-bearer`.

***

### issuer?

> `optional` **issuer**: `string`

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

Issuer URL.

***

### isUser?

> `optional` **isUser**: `boolean`

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

Whether the token represents a signed-in user rather than an API client.
`undefined` when the grant type is missing or unrecognized.

***

### roles

> **roles**: `string`[]

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

Account Manager role enum names (e.g. `AM_ACCOUNT_ADMIN`). Empty when the `roles` scope wasn't granted.

***

### scopes

> **scopes**: `string`[]

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

Granted OAuth scopes.

***

### sub?

> `optional` **sub**: `string`

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

Subject: the user's login for user tokens, the client ID for client tokens.

***

### tenantFilter

> **tenantFilter**: `Record`\<`string`, `string`[]\>

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

Tenants per role, parsed from `tenantFilter` (`ROLE:tenant1,tenant2;ROLE2:tenant3`).
Global roles that aren't tenant-scoped don't appear here.

***

### tenants

> **tenants**: `string`[]

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

Every tenant that appears in `tenantFilter`, de-duplicated and sorted.
