User
Operations about users
Retrieve all users from your instance. Only available for the instance owner.
The maximum number of items to return.
100Example: 100Paginate 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.
falsePossible values: Operation successful.
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.
MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDAThe request is invalid or provides malformed data.
Unauthorized
Forbidden
The given projectId does not exist.
GET /api/v1/users HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "john.doe@company.com",
"firstName": "john",
"lastName": "Doe",
"isPending": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"mfaEnabled": false,
"role": "global:owner"
}
],
"nextCursor": "MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA"
}Create one or more users.
global:memberOperation successful.
The reason the invite failed for this user. Empty when the invite succeeded.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
Unsupported media type.
POST /api/v1/users HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51
[
{
"email": "name@gmail.com",
"role": "global:member"
}
][
{
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "john.doe@company.com",
"inviteAcceptUrl": "text",
"emailSent": true,
"role": "global:member"
},
"error": "text"
}
]Retrieve a user from your instance. Only available for the instance owner.
The ID or email of the user.
falsePossible values: Operation successful.
123e4567-e89b-12d3-a456-426614174000john.doe@company.comjohnDoeWhether the user finished setting up their account in response to the invitation (true) or not (false).
Whether the user has multi-factor authentication (MFA/2FA) enabled.
falseglobal:ownerThe request is invalid or provides malformed data.
Unauthorized
Forbidden
No user with that ID or email.
GET /api/v1/users/{userId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "john.doe@company.com",
"firstName": "john",
"lastName": "Doe",
"isPending": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"mfaEnabled": false,
"role": "global:owner"
}Delete a user from your instance.
The ID of the user.
ID of the project to transfer the deleted user's workflows and credentials to. Omit to delete those resources instead of transferring them.
Operation successful.
No content
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
DELETE /api/v1/users/{userId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
No content
Change a user's global role
The ID of the user.
Operation successful.
No content
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Unsupported media type.
PATCH /api/v1/users/{userId}/role HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"newRoleName": "global:admin"
}No content
Last updated
Was this helpful?