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

# users

GraphQL QUERY

List of company users.  
Requires a B2B Token.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/queries/users

## GraphQL Schema

```graphql
query ExampleQuery($companyId: Int!, $offset: Int, $before: String, $after: String, $first: Int, $last: Int, $email: String, $firstName: String, $lastName: String, $role: Decimal, $search: String, $companyRoleId: Decimal) {
  users(companyId: $companyId, offset: $offset, before: $before, after: $after, first: $first, last: $last, email: $email, firstName: $firstName, lastName: $lastName, role: $role, search: $search, companyRoleId: $companyRoleId) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      node
      cursor
    }
    totalCount
  }
}
```

## Variables

```json
{
  "companyId": 0,
  "offset": 0,
  "before": "example",
  "after": "example",
  "first": 0,
  "last": 0,
  "email": "example",
  "firstName": "example",
  "lastName": "example",
  "role": 0,
  "search": "example",
  "companyRoleId": 0
}
```