User Management via the API
The Users API allows integrations installed in Enterprise tenants to programmatically manage Benchling users. This includes basic CRUD operations like reading and writing user data, batch and bulk create/update of users, and checking when a user was last seen.
This page uses the V3 API and the V3 Python SDK. If you’re new to the Benchling API, be sure to check out the Tutorial in our Overview page before proceeding.
The V3 user endpoints are beta. Set early_access="true" on the client, as in the examples below, or send the EARLY-ACCESS: true header on raw HTTP requests. See the V3 Stability Guidelines.
Every example below uses this client. Pass your tenant’s root URL; the SDK adds /api/v3 itself.
Users API Overview
The Users API includes a number of endpoints for managing Benchling users:
If you are coming from V2, a few fields changed:
V3 does not put group filters on the user listing. To find a user’s teams and organizations, or a group’s members, use GET /api/v3/group-membership/items with memberId.eq or groupId.eq instead of V2’s ?memberOf= and ?adminOf=. See Getting Information on Project Collaborators for that pattern.
As in V2, one batch or bulk update can’t swap the emails of two users. Change them in separate requests.
Creating and reading users
To create several users in one all-or-nothing request, pass up to 25 CreateUserInput items to user.batch_create:
Set organization_id on a CreateUserInput to add the new user to that organization as a MEMBER. It’s optional, even on tenants with more than one organization, unless your tenant is configured to require every user to belong to an organization.
Permissions
User management is a highly privileged activity; for this reason, creating and updating Benchling users requires tenant admin or User admin privileges. Apps cannot be made tenant admins, so the confirmed way to create and update Benchling users is with an API key generated by a tenant admin or User admin.
Reading Benchling user data (e.g. using GET /api/v3/user/items) doesn’t require any specific privileges, but the users returned depends on their organization membership. An app can only read a user’s information if they are both members of the same organization. The same principle applies when using an API key, based on the user who created the key.

Suspension
Suspending users can be accomplished using either the single or batch and bulk update endpoints. In the body of the user update object, setting the status property to SUSPENDED will suspend a user. Suspended users still exist on a tenant, but are logged out of Benchling and cannot re-authenticate. Set status back to ACTIVE to reinstate them. For example:
The SDK sends {"status": "SUSPENDED"} to PATCH /api/v3/user/ent_a8asdp. With raw HTTP:
To suspend several users in one transaction: