n8n_remove_user_from_project
Remove a user from an n8n project by specifying the project ID and user ID to manage access permissions.
Instructions
Remove a user from a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project ID | |
| userId | Yes | User ID |
Implementation Reference
- src/n8n-client.ts:262-265 (handler)The implementation of removeUserFromProject in the n8n client.
async removeUserFromProject(projectId: string, userId: string): Promise<any> { const response = await this.client.delete(`/projects/${projectId}/users/${userId}`); return response.data; } - src/index.ts:375-383 (handler)The tool handler in src/index.ts that invokes n8nClient.removeUserFromProject.
case 'n8n_remove_user_from_project': { if (!args?.projectId || !args?.userId) { throw new Error('projectId and userId are required'); } const result = await n8nClient.removeUserFromProject(args.projectId as string, args.userId as string); return { content: [{ type: 'text', text: `User removed from project successfully` }], }; } - src/index.ts:876-885 (schema)Tool registration and input schema definition for n8n_remove_user_from_project.
{ name: 'n8n_remove_user_from_project', description: 'Remove a user from a project', inputSchema: { type: 'object', properties: { projectId: { type: 'string', description: 'Project ID' }, userId: { type: 'string', description: 'User ID' }, }, required: ['projectId', 'userId'],