VTEX B2B GraphQL icon

VTEX B2B GraphQL

Interact with VTEX B2B Organizations GraphQL API

Actions15

User → Create

AI-generated

Summary

Creates a VTEX B2B user via a GraphQL mutation, optionally using a custom mutation or variables.

Inputs

  • customQuery — Custom GraphQL mutation string to execute; leave empty to use the default create user template.
  • variables — JSON object containing variables for the GraphQL mutation; defaults to an empty object.

Output shape

a single record containing the GraphQL response data for the created user

The response mirrors the GraphQL mutation output; fields may be nested and are not strictly defined by the node.

Examples

Example 1: Create a user with default template

Set operation to "create", leave customQuery empty, provide variables with user data (e.g., {"input":{"email":"test@example.com","name":"Test User"}}).

Example 2: Create a user with custom mutation

Provide a custom mutation string in customQuery and optionally supply variables; the node will execute the mutation and return the response.

Discussion