> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# CompanyRole

GraphQL object

A role that can be assigned to a user of a B2B company.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/objects/company-role

## Fields

- `entityId` — The unique ID of the company role, as accepted by the companyRoleId argument on user mutations.
- `name` — The display name of the company role.
- `roleLevel` — The level the role applies at. 1 is store level.
- `roleType` — The type of the role. 1 is predefined, 2 is custom.

## Definition

```graphql
type CompanyRole {
  entityId: Int!
  name: String
  roleLevel: Int
  roleType: Int
}
```