list_users
Retrieve user information from Zoho Projects to manage team members and assign tasks. Use this tool to view all users in a specific project or across your entire portal.
Instructions
List users in a portal or project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID (optional for portal-level) |
Implementation Reference
- src/http-server.ts:883-891 (handler)The handler function that implements the list_users tool logic. It determines the Zoho API endpoint based on whether a project_id is provided (project-level or portal-level users) and fetches the data using makeRequest, returning it as formatted text content.private async listUsers(projectId?: string) { const endpoint = projectId ? `/portal/${this.config.portalId}/projects/${projectId}/users` : `/portal/${this.config.portalId}/users`; const data = await this.makeRequest(endpoint); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
- src/index.ts:880-888 (handler)The handler function that implements the list_users tool logic. It determines the Zoho API endpoint based on whether a project_id is provided (project-level or portal-level users) and fetches the data using makeRequest, returning it as formatted text content.private async listUsers(projectId?: string) { const endpoint = projectId ? `/portal/${this.config.portalId}/projects/${projectId}/users` : `/portal/${this.config.portalId}/users`; const data = await this.makeRequest(endpoint); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
- src/http-server.ts:532-543 (schema)The tool definition including input schema for list_users, specifying optional project_id parameter.name: "list_users", description: "List users in a portal or project", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID (optional for portal-level)", }, }, }, },
- src/index.ts:529-540 (schema)The tool definition including input schema for list_users, specifying optional project_id parameter.name: "list_users", description: "List users in a portal or project", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID (optional for portal-level)", }, }, }, },
- src/http-server.ts:607-609 (registration)The switch case that registers and dispatches the list_users tool call to its handler.case "list_users": return await this.listUsers(params.project_id);