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

# userCreate

GraphQL MUTATION

Create a company user.  
Requires a B2B Token.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/mutations/user-create

## GraphQL Schema

```graphql
mutation ExampleMutation($userData: UserInputType!) {
  userCreate(userData: $userData) {
    user {
      id
      createdAt
      updatedAt
      firstName
      lastName
      email
      phone
      bcId
      role
      masqueradingCompanyId
    }
  }
}
```

## Variables

```json
{
  "userData": {
    "companyId": 0,
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "phone": "example",
    "role": 0,
    "companyRoleId": 0,
    "uuid": "example",
    "acceptEmail": true,
    "extraFields": [
      {
        "fieldName": "example",
        "fieldValue": "example"
      }
    ]
  }
}
```