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

# UserInputType

GraphQL input

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/types/inputs/user-input-type

## Fields

- `companyId` — The id of the company.   This field is required
- `email` — User email.   This field is required
- `firstName` — User first name.   This field is required
- `lastName` — User last name.   This field is required
- `phone` — User phone number
- `role` — User role.   (0-Admin, 1-Senior Buyer, 2-Junior Buyer).
- `companyRoleId` — User company role id.
- `uuid` — The uuid of user
- `acceptEmail` — Send welcome email to user.   True or False
- `extraFields` — user extra fields
- `addChannel` — Used for MSF store.   Add current channel to user if email exists.

## Definition

```graphql
input UserInputType {
  companyId: Int!
  email: String!
  firstName: String!
  lastName: String!
  phone: String
  role: Int
  companyRoleId: Int
  uuid: String
  acceptEmail: Boolean
  extraFields: [UserExtraField]
  addChannel: Boolean
}
```