Skip to main content
Glama

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
NameRequiredDescriptionDefault
activeNoFilter users by active status
searchNoSearch 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); };
  • 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' } } } },
  • 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,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rifqi96/mcp-gitlab'

If you have feedback or need assistance with the MCP directory API, please join our Discord server