The GraphQL Account API’s users feature lets you create, edit, and delete BigCommerce control panel users. This highly requested feature is primarily useful for Enterprise merchants who need to audit existing users or integrate with third-party user management systems.
A user is an account that can sign in to the BigCommerce control panel for an account or store. A user corresponds with one email address.
Before getting started with the GraphQL Account API’s users feature, make sure you have the following:
To learn more about making requests, see the next section on Getting Started.
Account based rate limiting will affect all endpoints that begin with /accounts.
The limit is set to 70 requests per hour.
Refer to our API Rate Limit Best Practices Documentation to help you manage your API usage effectively.
GraphQL schemas don’t carry per-operation OAuth scope metadata the way OpenAPI does, so individual mutation and query pages can’t render a required-scope block. Use the table below to map each operation to the scope it requires.
For more information on these OAuth scopes, see the Guide to API Accounts.
For more information on access token authentication, see Authentication and Example Requests.
The GraphQL Account API’s users feature introduces a new way to manage control panel users. Using an OAuth-based API account, you can integrate our platform with your current system to better serve the store or account’s needs.
Begin with the following steps to get started:
https://api.bigcommerce.com/accounts/{account_uuid}/graphql.X-Auth-Token request header with the access token as its value.This section contains examples of GraphQL Account API users queries and mutations that you can send with the following HTTP configuration:
The following query returns details about an account:
The following query returns details about an account’s users. Note that a standard cursor-based pagination is supported.
The following query returns details about the users of an account’s stores:
The following query returns details about an account’s apps:
The following mutation adds a user to an account:
The following mutation removes a user from an account:
The following mutations add a user to a store:
Example using the user’s ID to add the user to the store, the user in this case must be part of the account:
Example using the user’s email to add the user to the store:
The following mutation removes a user from a store: