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

## B2B GraphQL company user management error handling fixes

Fixes two issues in the B2B GraphQL API where a failed request to manage company users could return an unexpected response instead of a clear error.

* **Creating a company user with an email that's already in use** now returns an error instead of an invalid response.
* **A permission check shared by several company-scoped fields**, including `companyRoles`, now correctly returns a permission error instead of an unexpected response when a request shouldn't be allowed through.

This change is rolling out gradually to all stores.

For details, see the [`userCreate` mutation](/developer/api-reference/graphql/b2b/b2b-graphql/mutations/user-create) and [`companyRoles` query](/developer/api-reference/graphql/b2b/b2b-graphql/queries/company-roles) in the B2B GraphQL API reference.