For the complete documentation index, see llms.txt. This page is also available as Markdown.

User

Operations about users

Retrieve all users

get

Retrieve all users from your instance. Only available for the instance owner.

Authorizations
X-N8N-API-KEYstringRequired
Query parameters
limitnumber · max: 250Optional

The maximum number of items to return.

Default: 100Example: 100
offsetnumberOptional

The number of items to skip before starting to collect the result set.

Default: 0Example: 0
cursorstringOptional

Paginate by setting the cursor parameter to the nextCursor attribute returned by the previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.

includeRolebooleanOptional

Whether to include the user's role or not.

Default: falseExample: true
projectIdstringOptionalExample: VmwOO9HeTEj20kxM
Responses
200

Operation successful.

application/json
nextCursorstring · nullableOptional

Paginate through users by setting the cursor parameter to a nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.

Example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
get/users

Create multiple users

post

Create one or more users.

Authorizations
X-N8N-API-KEYstringRequired
Bodyobject[]
emailstring · emailRequired
rolestringOptionalExample: global:member
Responses
200

Operation successful.

application/json
errorstringOptional
post/users

Get user by ID/Email

get

Retrieve a user from your instance. Only available for the instance owner.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
idstring · identifierRequired

The ID or email of the user.

Query parameters
includeRolebooleanOptional

Whether to include the user's role or not.

Default: falseExample: true
Responses
200

Operation successful.

application/json
idstringRead-onlyOptionalExample: 123e4567-e89b-12d3-a456-426614174000
emailstring · emailRequiredExample: john.doe@company.com
firstNamestring · max: 32Read-onlyOptional

User's first name

Example: john
lastNamestring · max: 32Read-onlyOptional

User's last name

Example: Doe
isPendingbooleanRead-onlyOptional

Whether the user finished setting up their account in response to the invitation (true) or not (false).

createdAtstring · date-timeRead-onlyOptional

Time the user was created.

updatedAtstring · date-timeRead-onlyOptional

Last time the user was updated.

rolestringRead-onlyOptionalExample: global:owner
mfaEnabledbooleanRead-onlyOptional

Whether the user has multi-factor authentication (MFA/2FA) enabled.

Example: false
get/users/{id}

Delete a user

delete

Delete a user from your instance.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
idstring · identifierRequired

The ID or email of the user.

Responses
204

Operation successful.

No content

delete/users/{id}

No content

Change a user's global role

patch

Change a user's global role

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
idstring · identifierRequired

The ID or email of the user.

Body
newRoleNamestringRequiredExample: global:member
Responses
200

Operation successful.

No content

patch/users/{id}/role

No content

Last updated

Was this helpful?