n8n_create_user
Add new users to n8n by providing email, name, and role details for workflow management and administrative access.
Instructions
Create a new user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | User email | ||
| firstName | No | First name | |
| lastName | No | Last name | |
| role | No | User role |
Implementation Reference
- src/n8n-client.ts:215-218 (handler)The actual API call implementation for creating a user in n8n.
async createUser(data: any): Promise<any> { const response = await this.client.post('/users', data); return response.data; } - src/index.ts:300-306 (registration)The tool handler registration/logic switch case.
case 'n8n_create_user': { if (!args?.email) throw new Error('email is required'); const result = await n8nClient.createUser(args); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/index.ts:771-782 (schema)The schema definition for the n8n_create_user tool.
name: 'n8n_create_user', description: 'Create a new user', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'User email' }, firstName: { type: 'string', description: 'First name' }, lastName: { type: 'string', description: 'Last name' }, role: { type: 'string', description: 'User role' }, }, required: ['email'], },