gitlab_list_users
Retrieve and filter GitLab users by active status or search criteria like username, name, or email using the GitLab MCP Server for streamlined user management.
Instructions
List GitLab users
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | Filter users by active status | |
| search | No | Search users by username, name or email |
Implementation Reference
- The handler function that implements the core logic for the gitlab_list_users tool by calling the usersGroupsManager.listUsers method with extracted parameters.export const listUsers: ToolHandler = async (params, context) => { const { username, search, active, blocked, external } = params.arguments || {}; const data = await context.usersGroupsManager.listUsers({ username: username as string | undefined, search: search as string | undefined, active: active as boolean | undefined, blocked: blocked as boolean | undefined, external: external as boolean | undefined }); return formatResponse(data); };
- src/utils/tools-data.ts:718-734 (schema)The input schema definition for the gitlab_list_users tool, specifying parameters like search and active.{ name: 'gitlab_list_users', description: 'List GitLab users', inputSchema: { type: 'object', properties: { search: { type: 'string', description: 'Search users by username, name or email' }, active: { type: 'boolean', description: 'Filter users by active status' } } } },
- src/utils/tool-registry.ts:63-63 (registration)The registration of the gitlab_list_users tool in the central tool registry, mapping it to the listUsers handler function.gitlab_list_users: usersGroupsHandlers.listUsers,