> 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.

# ActiveCompany

GraphQL object

The current customer's active B2B company.

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

## Fields

- `addresses` — Paginated list of addresses associated with the customer's company.
- `address` — A single company address by id. **Deprecated:** Alpha version. Do not use in production.
- `companyName` — The name of the current login b2b user's active company. Null when the customer has no active company, such as a super admin who is not masquerading as one. **Deprecated:** Alpha version. Do not use in production.
- `currentUser` — The authenticated shopper's own company-scoped user data, or null if the caller is not a company user, B2B is disabled, or the feature flag is off. **Deprecated:** Alpha version. Do not use in production.
- `companyRoles` — A paginated list of the roles that can be assigned to a user of the current customer's company, including both predefined and custom company roles. **Deprecated:** Alpha version. Do not use in production.
- `userEmailCheck` — Check whether an email address is already registered, and if so in what capacity, before creating or updating a company user. The store and channel the check runs against are taken from the authenticated request, not from arguments. **Deprecated:** Alpha version. Do not use in production.
- `orders` — A paginated list of orders placed under the current customer's company.
- `users` — A paginated list of the users of the company the customer is currently representing, including a masqueraded or subsidiary company. **Deprecated:** Alpha version. Do not use in production.

## Definition

```graphql
type ActiveCompany {
  addresses(before: String, after: String, first: Int, last: Int, filters: CompanyAddressFiltersInput, sort: [CompanyAddressSortInput!], includesExtraFields: Boolean): CompanyAddressConnection!
  address(entityId: Int!): CompanyAddress
  companyName: String
  currentUser: CurrentUser
  companyRoles(before: String, after: String, first: Int, last: Int, filters: CompanyRolesFiltersInput): CompanyRoleConnection!
  userEmailCheck(email: String!): UserEmailCheckResult
  orders(before: String, after: String, first: Int, last: Int, filters: CompanyOrdersFiltersInput, sortBy: CompanyOrdersSortInput): OrdersConnection
  users(before: String, after: String, first: Int, last: Int, filters: CompanyUsersFiltersInput): CompanyUserConnection
}
```