Ir al contenido

Usuarios

El usuario actual y cada usuario que gestiona un administrador: leer y listar usuarios, crear, modificar y borrar cuentas, y bloquear, desbloquear, vetar, levantar el veto, activar, desactivar, aprobar o rechazar una; claves SSH y GPG y correos, del usuario actual o de otro; tokens de acceso personales y tokens de suplantación; el estado y el avatar del usuario; actividades, pertenencias y eventos de contribución y de proyecto; tareas pendientes; ajustes de notificación; espacios de nombres; cuentas de servicio de la instancia; y runners creados para el usuario.

Los tokens de acceso de proyecto y de grupo, los tokens de despliegue y las claves de despliegue están en Tokens de acceso y credenciales.

  • “¿Con qué usuario he iniciado sesión?”
  • “Lista mis claves SSH”
  • “¿Cuáles son mis tareas pendientes?”
  • “Bloquea al usuario spammer42”
  • Dinámica, la superficie predeterminada: llama a gitlab_execute_action con action igual al ID de la acción, como user.activate, y sus parámetros en params. gitlab_find_action encuentra un ID a partir de una descripción de la tarea.
  • Meta (GITLAB_MCP_TOOL_SURFACE=meta): llama a gitlab_user con action igual al nombre de la acción, como activate, y sus parámetros en params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): llama a la herramienta propia de la acción, como gitlab_activate_user, pasándole directamente sus parámetros.

Todos los niveles sirven el grupo completo, tanto en instancias autogestionadas como en GitLab.com.

Acciones de solo lectura: 37 de 76, las que conserva un despliegue en modo de solo lectura. A un token con read_api y sin api se le sirven 37 de las 76.

La descripción de cada acción, y la de cada uno de sus parámetros, es el texto que sirve el servidor para ella en la superficie predeterminada, citado tal cual; por eso está en inglés. Las líneas de token dicen lo que exige GitLab 19.6.1 a un token para las peticiones que envía cada acción; en una instancia con Admin Mode activado, una acción que solo puede ejecutar un administrador necesita además admin_mode. Una acción destructiva solo se ejecuta una vez confirmada, salvo que GITLAB_MCP_YOLO_MODE (o AUTOPILOT) se salte ese paso: la superficie dinámica necesita confirm: true en gitlab_execute_action, y las otras dos aceptan un parámetro confirm o la pregunta del cliente (Acciones destructivas). Un parámetro seguido de un nivel entre paréntesis solo se sirve a partir de ese nivel.

Acción Individual
user.activate gitlab_activate_user
user.activities gitlab_get_user_activities
user.add_email gitlab_add_email
user.add_email_for_user gitlab_add_email_for_user
user.add_gpg_key gitlab_add_gpg_key
user.add_gpg_key_for_user gitlab_add_gpg_key_for_user
user.add_ssh_key gitlab_add_ssh_key
user.add_ssh_key_for_user gitlab_add_ssh_key_for_user
user.approve gitlab_approve_user
user.associations_count gitlab_get_user_associations_count
user.avatar_get gitlab_get_avatar
user.ban gitlab_ban_user
user.block gitlab_block_user
user.contribution_events gitlab_list_user_contribution_events
user.create gitlab_create_user
user.create_current_user_pat gitlab_create_current_user_pat
user.create_impersonation_token gitlab_create_impersonation_token
user.create_personal_access_token gitlab_create_personal_access_token
user.create_runner gitlab_create_user_runner
user.create_service_account gitlab_create_service_account
user.current gitlab_user_current
user.current_user_status gitlab_current_user_status
user.deactivate gitlab_deactivate_user
user.delete gitlab_delete_user
user.delete_email gitlab_delete_email
user.delete_email_for_user gitlab_delete_email_for_user
user.delete_gpg_key gitlab_delete_gpg_key
user.delete_gpg_key_for_user gitlab_delete_gpg_key_for_user
user.delete_identity gitlab_delete_user_identity
user.delete_ssh_key gitlab_delete_ssh_key
user.delete_ssh_key_for_user gitlab_delete_ssh_key_for_user
user.disable_two_factor gitlab_disable_two_factor
user.emails gitlab_list_emails
user.emails_for_user gitlab_list_emails_for_user
user.event_list_contributions gitlab_user_contribution_event_list
user.event_list_project gitlab_project_event_list
user.get gitlab_get_user
user.get_email gitlab_get_email
user.get_gpg_key gitlab_get_gpg_key
user.get_gpg_key_for_user gitlab_get_gpg_key_for_user
user.get_impersonation_token gitlab_get_impersonation_token
user.get_ssh_key gitlab_get_ssh_key
user.get_ssh_key_for_user gitlab_get_ssh_key_for_user
user.get_status gitlab_get_user_status
user.gpg_keys gitlab_list_gpg_keys
user.gpg_keys_for_user gitlab_list_gpg_keys_for_user
user.key_get_by_fingerprint gitlab_get_key_by_fingerprint
user.key_get_with_user gitlab_get_key_with_user
user.list gitlab_list_users
user.list_impersonation_tokens gitlab_list_impersonation_tokens
user.list_service_accounts gitlab_list_service_accounts
user.me gitlab_user_current
user.memberships gitlab_get_user_memberships
user.modify gitlab_modify_user
user.namespace_exists gitlab_namespace_exists
user.namespace_get gitlab_namespace_get
user.namespace_list gitlab_namespace_list
user.namespace_search gitlab_namespace_search
user.notification_global_get gitlab_notification_global_get
user.notification_global_update gitlab_notification_global_update
user.notification_group_get gitlab_notification_group_get
user.notification_group_update gitlab_notification_group_update
user.notification_project_get gitlab_notification_project_get
user.notification_project_update gitlab_notification_project_update
user.reject gitlab_reject_user
user.revoke_impersonation_token gitlab_revoke_impersonation_token
user.set_status gitlab_set_user_status
user.ssh_keys gitlab_list_ssh_keys
user.ssh_keys_for_user gitlab_list_ssh_keys_for_user
user.todo_list gitlab_todo_list
user.todo_mark_all_done gitlab_todo_mark_all_done
user.todo_mark_done gitlab_todo_mark_done
user.unban gitlab_unban_user
user.unblock gitlab_unblock_user
user.update_service_account gitlab_update_instance_service_account
user.upload_avatar gitlab_upload_user_avatar

Activate a deactivated user. Returns: confirmation with the user ID and action. See also: user.deactivate, user.unblock, user.get.

  • Meta-herramienta: gitlab_user, acción activate
  • Herramienta individual: gitlab_activate_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Activate en instancia (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

List user activities (admin). Returns: username and last-activity date per user. See also: user.list, user.contribution_events, user.memberships.

  • Meta-herramienta: gitlab_user, acción activities
  • Herramienta individual: gitlab_get_user_activities
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Activity: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
from string no Only activities after this date (YYYY-MM-DD)
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: asc or desc

Add an email address to the authenticated user’s account. Requires confirmation. Returns: the created email’s ID, address, and confirmation timestamp. See also: user.get_email, user.delete_email, user.add_email_for_user.

  • Meta-herramienta: gitlab_user, acción add_email
  • Herramienta individual: gitlab_add_email
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Email: Create en usuario (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), no idempotente
Parámetro Tipo Requerido Descripción
email string sí Email address to add
skip_confirmation boolean no Skip confirmation email (admin only)

Add an email address to a specific user’s account (admin only). Requires confirmation. Returns: the created email’s ID, address, and confirmation timestamp. See also: user.emails_for_user, user.delete_email_for_user, user.add_email.

  • Meta-herramienta: gitlab_user, acción add_email_for_user
  • Herramienta individual: gitlab_add_email_for_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Email: Create en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), no idempotente
Parámetro Tipo Requerido Descripción
email string sí Email address to add
user_id integer sí GitLab user ID
skip_confirmation boolean no Skip confirmation email (admin only)

Add a GPG key to the authenticated user’s account. Returns: the created key’s ID, armored public key, and creation timestamp. See also: user.gpg_keys, user.get_gpg_key, user.delete_gpg_key, user.add_gpg_key_for_user.

  • Meta-herramienta: gitlab_user, acción add_gpg_key
  • Herramienta individual: gitlab_add_gpg_key
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: GPG Key: Create en usuario (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
key string sí The armored GPG public key content

Add a GPG key to a specific user’s account (admin only). Returns: the created key’s ID, armored public key, and creation timestamp. See also: user.gpg_keys_for_user, user.get_gpg_key_for_user, user.delete_gpg_key_for_user, user.add_gpg_key.

  • Meta-herramienta: gitlab_user, acción add_gpg_key_for_user
  • Herramienta individual: gitlab_add_gpg_key_for_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: GPG Key: Create en instancia (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
key string sí The armored GPG public key content
user_id integer sí The ID of the user

Add an SSH key to the current user. Requires confirmation. Returns: created key ID, title, usage type, and expiry. See also: user.ssh_keys, user.get_ssh_key, user.delete_ssh_key.

  • Meta-herramienta: gitlab_user, acción add_ssh_key
  • Herramienta individual: gitlab_add_ssh_key
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: SSH Key: Create en usuario (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), no idempotente
Parámetro Tipo Requerido Descripción
key string sí The SSH public key content
title string sí A descriptive title for the SSH key
expires_at string no Expiry time, an ISO 8601 timestamp such as 2026-12-31T23:00:00Z. A date such as 2026-12-31 is read as midnight UTC
usage_type string (auth, signing, auth_and_signing) no SSH key usage scope: auth (authentication), signing (commit signing), or auth_and_signing (both). Default: auth_and_signing.

Add an SSH key to a specific user. Requires confirmation. Returns: created key ID, title, usage type, and expiry. Requires admin token. See also: user.ssh_keys_for_user, user.get_ssh_key_for_user, user.delete_ssh_key_for_user.

  • Meta-herramienta: gitlab_user, acción add_ssh_key_for_user
  • Herramienta individual: gitlab_add_ssh_key_for_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: SSH Key: Create en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), no idempotente
Parámetro Tipo Requerido Descripción
key string sí The SSH public key content
title string sí A descriptive title for the SSH key
user_id integer sí The ID of the user
expires_at string no Expiry time, an ISO 8601 timestamp such as 2026-12-31T23:00:00Z. A date such as 2026-12-31 is read as midnight UTC
usage_type string (auth, signing, auth_and_signing) no SSH key usage scope: auth (authentication), signing (commit signing), or auth_and_signing (both). Default: auth_and_signing.

Approve a pending user sign-up. Returns: confirmation with the user ID and action. See also: user.reject, user.get, user.list.

  • Meta-herramienta: gitlab_user, acción approve
  • Herramienta individual: gitlab_approve_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Approve en instancia (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

Get a user’s association counts. Returns: groups, projects, issues, and merge-requests counts. See also: user.get, user.memberships, user.delete.

  • Meta-herramienta: gitlab_user, acción associations_count
  • Herramienta individual: gitlab_get_user_associations_count
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Association: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

Get the avatar URL for an email address. Returns: the resolved avatar URL for that email address. See also: user.me, user.get_status.

  • Meta-herramienta: gitlab_user, acción avatar_get
  • Herramienta individual: gitlab_get_avatar
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Avatar: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
email string sí Email address to look up avatar for
size integer no Desired avatar size in pixels

Ban a user. Returns: confirmation with the user ID and action. Reversible via user.unban. See also: user.unban, user.block, user.get.

  • Meta-herramienta: gitlab_user, acción ban
  • Herramienta individual: gitlab_ban_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Ban en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

Block a user from signing in. Returns: confirmation with the user ID and action. Reversible via user.unblock. See also: user.unblock, user.ban, user.get.

  • Meta-herramienta: gitlab_user, acción block
  • Herramienta individual: gitlab_block_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Block en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

List a user’s contribution events by ID or username. Returns: event entries with action, target type/title and link, project, author, timestamp, the push, note or wiki page the event concerns, and its import origin. See also: user.get, user.activities, user.associations_count.

  • Meta-herramienta: gitlab_user, acción contribution_events
  • Herramienta individual: gitlab_list_user_contribution_events
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Event: Read en usuario. Algunas llamadas también necesitan: Project: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id string/integer sí The ID or username of the user whose events to retrieve
action string (created, updated, closed, reopened, pushed, commented, merged, joined, left, destroyed, expired, approved, transferred) no Filter by event action, one of created, updated, closed, reopened, pushed, commented, merged, joined, left, destroyed, expired, approved, transferred. Any other value is refused before the request, since GitLab would ignore it and answer every event.
after string no Only events after this date (YYYY-MM-DD)
before string no Only events before this date (YYYY-MM-DD)
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
scope string no Include all events across a user’s projects (e.g. ‘all’)
sort string (asc, desc) no Sort order: asc or desc
target_type string (issue, milestone, merge_request, note, project, snippet, user, wiki, design) no Filter by event target type, one of issue, milestone, merge_request, note, project, snippet, user, wiki, design. GitLab refuses any other value, epic included. Responses spell the type in model form (Issue, MergeRequest, WikiPage::Meta, DesignManagement::Design), which a filter does not accept.

Create a user account. Returns: created user identity and profile summary fields. See also: user.get, user.modify, user.block.

  • Meta-herramienta: gitlab_user, acción create
  • Herramienta individual: gitlab_create_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Create en instancia (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
email string sí The user email address
name string sí The user display name
username string sí The username
admin boolean no Grant admin privileges
auditor (Premium) boolean no Grant auditor privileges (Premium/Ultimate)
avatar object no Avatar image to upload for the user, from a local file or base64 content
bio string no User bio text
can_create_group boolean no Allow the user to create groups
color_scheme_id integer no Syntax-highlighting color scheme ID
commit_email string no Email used for commits
discord string no Discord account
extern_uid string no External UID for the provider
external boolean no Mark user as external
extra_shared_runners_minutes_limit (Premium) integer no Extra shared runners minutes (admin, Premium/Ultimate)
force_random_password boolean no Set a random password instead of requiring one
github string no GitHub account
group_id_for_saml integer no Group ID for SAML provisioning
linkedin string no LinkedIn account
location string no User location
note string no Admin note about the user
organization string no User organization
password string no The user password (required unless reset_password or force_random_password is set)
private_profile boolean no Make the user’s profile private
projects_limit integer no Maximum number of projects the user can create
pronouns string no User pronouns
provider string no External provider name (use with extern_uid)
public_email string no Publicly visible email address
reset_password boolean no Send a password reset email instead of setting password
shared_runners_minutes_limit (Premium) integer no Shared runners minutes limit (admin, Premium/Ultimate)
skip_confirmation boolean no Skip confirmation email and activate user immediately
theme_id integer no GitLab theme ID for the user’s UI
twitter string no Twitter/X account
view_diffs_file_by_file boolean no Show whitespace changes in diffs file by file
website_url string no User website URL

Create a personal access token for the current user, classic or fine-grained. Returns: token ID, the secret token, scopes or granular scopes, and expiry. See also: user.me, user.create_runner.

  • Meta-herramienta: gitlab_user, acción create_current_user_pat
  • Herramienta individual: gitlab_create_current_user_pat
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Personal Access Token: Create en usuario (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
name string sí Name of the personal access token
description string no Description for the token
expires_at string no Token expiration date (YYYY-MM-DD)
granular_scopes object[] no Grant of a fine-grained token, one entry per access and its permissions. Send this or scopes, exactly one
scopes string[] (k8s_proxy, self_rotate) no Classic scopes of the token, which GitLab limits to k8s_proxy and self_rotate on this route. Send this or granular_scopes, exactly one

Además necesita exactamente uno de estos: scopes; granular_scopes.

Create an impersonation token for a user with classic scopes or a fine-grained granular_scopes grant, an optional description and an optional expiry. Returns: the new token’s id, name, active flag, scopes or granular scopes, description, revoked flag, created_at, expires_at, and the secret token value (shown once). See also: user.list_impersonation_tokens, user.revoke_impersonation_token, user.create_personal_access_token.

  • Meta-herramienta: gitlab_user, acción create_impersonation_token
  • Herramienta individual: gitlab_create_impersonation_token
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Impersonation Token: Create en instancia (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
name string sí Name of the impersonation token
user_id integer sí GitLab user ID
description string no Description of the token, up to 255 characters
expires_at string no Token expiration date (YYYY-MM-DD)
granular_scopes object[] no Grant of a fine-grained token, one entry per access and its permissions. Send this or scopes, not both
scopes string[] no Classic scopes of the token (api/read_user/read_api/read_repository/write_repository/read_registry/write_registry/sudo/admin_mode/create_runner/manage_runner/ai_features/k8s_proxy). Send this or granular_scopes, not both

Además necesita exactamente uno de estos: scopes; granular_scopes.

Create a personal access token for a user with classic scopes or, from GitLab 19.6, a fine-grained granular_scopes grant, an optional description, and an optional expiry. Returns: the new token’s id, name, active flag, scopes or granular scopes, revoked flag, description, user_id, created_at, expires_at, and the secret token value (shown once). See also: access.token_personal_list, access.token_personal_revoke, user.create_impersonation_token.

  • Meta-herramienta: gitlab_user, acción create_personal_access_token
  • Herramienta individual: gitlab_create_personal_access_token
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Personal Access Token: Create en instancia (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
name string sí Name of the personal access token
user_id integer sí GitLab user ID
description string no Description for the token
expires_at string no Token expiration date (YYYY-MM-DD)
granular_scopes object[] no Grant of a fine-grained token, one entry per access and its permissions, applied to the user the token is for (GitLab 19.6 and later). Send this or scopes, not both
scopes string[] no Classic scopes of the token. Send this or granular_scopes, not both

Además necesita exactamente uno de estos: scopes; granular_scopes.

Create a runner linked to the current user. Returns: runner ID, authentication token, and token expiry. See also: user.me, user.create_current_user_pat.

  • Meta-herramienta: gitlab_user, acción create_runner
  • Herramienta individual: gitlab_create_user_runner
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Runner: Create en usuario (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
runner_type string (instance_type, group_type, project_type) sí Runner scope: instance_type (shared), group_type (requires group_id), or project_type (requires project_id).
access_level string no Access level: not_protected or ref_protected
description string no Runner description
group_id integer no Group ID (required for group_type runners)
locked boolean no Whether the runner should be locked
maintenance_note string no Maintenance note for the runner
maximum_timeout integer no Maximum timeout for jobs in seconds
paused boolean no Whether the runner should be paused
project_id integer no Project ID (required for project_type runners)
run_untagged boolean no Whether the runner can run untagged jobs
tag_list string[] no List of runner tags

Create an instance-level service account. Returns: the created service account with ID, username, name, and email. Requires admin token. See also: user.list_service_accounts, user.update_service_account.

  • Meta-herramienta: gitlab_user, acción create_service_account
  • Herramienta individual: gitlab_create_service_account
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Service Account: Create en instancia (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
email string no Email for the service account
external boolean no Create the service account as an external user, which reaches internal and private projects only where it is a member
name string no Name for the service account
username string no Username for the service account

Get the current authenticated user. Returns: account ID, username, name, state, avatar URL, and profile metadata. See also: user.list, user.current_user_status, user.emails.

  • Meta-herramienta: gitlab_user, acción current
  • Herramienta individual: gitlab_user_current
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: User: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente

Sin parámetros.

Get the current user’s status. Returns: emoji, message, availability, and clear-status time. See also: user.set_status, user.get_status, user.me.

  • Meta-herramienta: gitlab_user, acción current_user_status
  • Herramienta individual: gitlab_current_user_status
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Status: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente

Sin parámetros.

Deactivate an active user. Returns: confirmation with the user ID and action. Reversible via user.activate. See also: user.activate, user.block, user.get.

  • Meta-herramienta: gitlab_user, acción deactivate
  • Herramienta individual: gitlab_deactivate_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Deactivate en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

Delete a user account. Returns: confirmation with the deleted user ID. Requires admin token. See also: user.get, user.block, user.associations_count.

  • Meta-herramienta: gitlab_user, acción delete
  • Herramienta individual: gitlab_delete_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Delete en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user to delete

Delete an email address from the authenticated user’s account. Returns: a confirmation naming the deleted email ID. See also: user.get_email, user.add_email, user.delete_email_for_user.

  • Meta-herramienta: gitlab_user, acción delete_email
  • Herramienta individual: gitlab_delete_email
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Email: Delete en usuario (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
email_id integer sí Email ID to delete

Delete an email address from a specific user’s account (admin only). Returns: a confirmation naming the deleted email ID. See also: user.emails_for_user, user.add_email_for_user, user.delete_email.

  • Meta-herramienta: gitlab_user, acción delete_email_for_user
  • Herramienta individual: gitlab_delete_email_for_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Email: Delete en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
email_id integer sí Email ID to delete
user_id integer sí GitLab user ID

Delete a GPG key from the authenticated user’s account. Returns: a confirmation naming the deleted key ID. See also: user.gpg_keys, user.get_gpg_key, user.add_gpg_key, user.delete_gpg_key_for_user.

  • Meta-herramienta: gitlab_user, acción delete_gpg_key
  • Herramienta individual: gitlab_delete_gpg_key
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: GPG Key: Delete en usuario (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the GPG key to delete

Delete a GPG key from a specific user’s account (admin only). Returns: a confirmation naming the deleted key ID. See also: user.gpg_keys_for_user, user.get_gpg_key_for_user, user.add_gpg_key_for_user, user.delete_gpg_key.

  • Meta-herramienta: gitlab_user, acción delete_gpg_key_for_user
  • Herramienta individual: gitlab_delete_gpg_key_for_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: GPG Key: Delete en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the GPG key to delete
user_id integer sí The ID of the user

Delete a user’s external identity. Returns: confirmation with user ID and provider. Requires admin token. See also: user.get, user.modify.

  • Meta-herramienta: gitlab_user, acción delete_identity
  • Herramienta individual: gitlab_delete_user_identity
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Identity: Delete en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
provider string sí The external provider name (e.g. ldap or saml)
user_id integer sí The ID of the user

Delete one of the current user’s SSH keys. Returns: confirmation with the deleted key ID. See also: user.ssh_keys, user.get_ssh_key, user.add_ssh_key.

  • Meta-herramienta: gitlab_user, acción delete_ssh_key
  • Herramienta individual: gitlab_delete_ssh_key
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: SSH Key: Delete en usuario (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the SSH key to delete

Delete a specific user’s SSH key. Returns: confirmation with the deleted key ID. Requires admin token. See also: user.ssh_keys_for_user, user.get_ssh_key_for_user, user.add_ssh_key_for_user.

  • Meta-herramienta: gitlab_user, acción delete_ssh_key_for_user
  • Herramienta individual: gitlab_delete_ssh_key_for_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: SSH Key: Delete en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the SSH key to delete
user_id integer sí The ID of the user

Disable 2FA for a user. Returns: confirmation with the user ID and action. See also: user.get, user.modify.

  • Meta-herramienta: gitlab_user, acción disable_two_factor
  • Herramienta individual: gitlab_disable_two_factor
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Disable Two Factor en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

List the current user’s email addresses. Returns: email entries with ID, address, and confirmation time, with pagination metadata. See also: user.me, user.modify.

  • Meta-herramienta: gitlab_user, acción emails
  • Herramienta individual: gitlab_list_emails
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Email: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.

List the email addresses registered to a specific user account. Returns: each email’s ID, address, and confirmation timestamp, with pagination metadata. See also: user.get_email, user.add_email_for_user, user.delete_email_for_user, user.get.

  • Meta-herramienta: gitlab_user, acción emails_for_user
  • Herramienta individual: gitlab_list_emails_for_user
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Email: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí GitLab user ID
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort direction for ordered results: asc or desc

List the current user’s contribution events. Returns: each event with action_name, target type and IID, push_data, embedded note, author object, created timestamp, and pagination metadata. See also: user.event_list_project, user.get.

  • Meta-herramienta: gitlab_user, acción event_list_contributions
  • Herramienta individual: gitlab_user_contribution_event_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Event: Read en usuario. Algunas llamadas también necesitan: Project: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
action string (created, updated, closed, reopened, pushed, commented, merged, joined, left, destroyed, expired, approved, transferred) no Filter by event action, one of created, updated, closed, reopened, pushed, commented, merged, joined, left, destroyed, expired, approved, transferred. Any other value is refused before the request, since GitLab would ignore it and answer every event.
after string no Return events after this date (YYYY-MM-DD)
before string no Return events before this date (YYYY-MM-DD)
order_by string no Column by which to order results (id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
scope string no Include events from all projects (all) or only user’s projects
sort string (asc, desc) no Sort order (asc or desc)
target_type string (issue, milestone, merge_request, note, project, snippet, user, wiki, design) no Filter by event target type, one of issue, milestone, merge_request, note, project, snippet, user, wiki, design. GitLab refuses any other value, epic included. Responses spell the type in model form (Issue, MergeRequest, WikiPage::Meta, DesignManagement::Design), which a filter does not accept.

List a project’s visible activity events. Returns: each event with action_name, target type and IID, push_data, embedded note with author, data (ref, commits, repository), author object, created timestamp, and pagination metadata. See also: user.event_list_contributions, project.get.

  • Meta-herramienta: gitlab_user, acción event_list_project
  • Herramienta individual: gitlab_project_event_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Event: Read en proyecto. Algunas llamadas también necesitan: Project: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
project_id string/integer sí Project ID or URL-encoded path
action string (created, updated, closed, reopened, pushed, commented, merged, joined, left, destroyed, expired, approved, transferred) no Filter by event action, one of created, updated, closed, reopened, pushed, commented, merged, joined, left, destroyed, expired, approved, transferred. Any other value is refused before the request, since GitLab would ignore it and answer every event.
after string no Return events after this date (YYYY-MM-DD)
before string no Return events before this date (YYYY-MM-DD)
order_by string no Column by which to order results (id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order (asc or desc, default desc)
target_type string (issue, milestone, merge_request, note, project, snippet, user, wiki, design) no Filter by event target type, one of issue, milestone, merge_request, note, project, snippet, user, wiki, design. GitLab refuses any other value, epic included. Responses spell the type in model form (Issue, MergeRequest, WikiPage::Meta, DesignManagement::Design), which a filter does not accept.

Get one user by ID. Returns: detailed account profile metadata and status fields. See also: user.list, user.modify, user.delete.

  • Meta-herramienta: gitlab_user, acción get
  • Herramienta individual: gitlab_get_user
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: User: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user to retrieve
with_custom_attributes boolean no Include custom attributes in the response (admin only)

Get one email address from the authenticated user’s account by ID. Returns: the email’s ID, address, and confirmation timestamp. See also: user.add_email, user.delete_email, user.emails_for_user.

  • Meta-herramienta: gitlab_user, acción get_email
  • Herramienta individual: gitlab_get_email
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Email: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
email_id integer sí Email ID to retrieve

Get one GPG key from the authenticated user’s account by ID. Returns: the key’s ID, armored public key, and creation timestamp. See also: user.gpg_keys, user.add_gpg_key, user.delete_gpg_key.

  • Meta-herramienta: gitlab_user, acción get_gpg_key
  • Herramienta individual: gitlab_get_gpg_key
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: GPG Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the GPG key

Get one GPG key from a specific user’s account by ID. Returns: the key’s ID, armored public key, and creation timestamp. See also: user.gpg_keys_for_user, user.add_gpg_key_for_user, user.delete_gpg_key_for_user, user.get.

  • Meta-herramienta: gitlab_user, acción get_gpg_key_for_user
  • Herramienta individual: gitlab_get_gpg_key_for_user
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: GPG Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the GPG key
user_id integer sí The ID of the user

Get a single impersonation token for a user by token id. Returns: the token’s id, name, active flag, scopes, revoked flag, created_at, expires_at, and last_used_at. See also: user.list_impersonation_tokens, user.revoke_impersonation_token.

  • Meta-herramienta: gitlab_user, acción get_impersonation_token
  • Herramienta individual: gitlab_get_impersonation_token
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Impersonation Token: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
token_id integer sí Impersonation token ID
user_id integer sí GitLab user ID

Get one of the current user’s SSH keys by ID. Returns: key ID, title, public key, usage type, and expiry. See also: user.ssh_keys, user.add_ssh_key, user.delete_ssh_key.

  • Meta-herramienta: gitlab_user, acción get_ssh_key
  • Herramienta individual: gitlab_get_ssh_key
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: SSH Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the SSH key

Get a specific user’s SSH key by ID. Returns: key ID, title, public key, usage type, and expiry. See also: user.ssh_keys_for_user, user.add_ssh_key_for_user, user.delete_ssh_key_for_user.

  • Meta-herramienta: gitlab_user, acción get_ssh_key_for_user
  • Herramienta individual: gitlab_get_ssh_key_for_user
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: SSH Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí The ID of the SSH key
user_id integer sí The ID of the user

Get a user’s status by ID or username. Returns: emoji, message, availability, and clear-status time. See also: user.current_user_status, user.set_status, user.get.

  • Meta-herramienta: gitlab_user, acción get_status
  • Herramienta individual: gitlab_get_user_status
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Status: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id string/integer sí The ID or username of the user whose status to retrieve

List the authenticated user’s GPG keys. Returns: each key’s ID, armored public key, and creation timestamp, with pagination metadata. See also: user.get_gpg_key, user.add_gpg_key, user.delete_gpg_key, user.gpg_keys_for_user.

  • Meta-herramienta: gitlab_user, acción gpg_keys
  • Herramienta individual: gitlab_list_gpg_keys
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: GPG Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.

List a specific user’s GPG keys. Returns: each key’s ID, armored public key, and creation timestamp, with pagination metadata. See also: user.get_gpg_key_for_user, user.add_gpg_key_for_user, user.delete_gpg_key_for_user, user.get.

  • Meta-herramienta: gitlab_user, acción gpg_keys_for_user
  • Herramienta individual: gitlab_list_gpg_keys_for_user
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: GPG Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.

Look up an SSH key or deploy key by fingerprint and return the owning user. Returns: the key ID, title, public key, creation time, and the owning user (ID, username, name). See also: user.get_ssh_key, user.ssh_keys, user.ssh_keys_for_user.

  • Meta-herramienta: gitlab_user, acción key_get_by_fingerprint
  • Herramienta individual: gitlab_get_key_by_fingerprint
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: SSH Key: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
fingerprint string sí SSH key fingerprint: SHA256: and the 43 base64 characters ssh-keygen -l prints, or the MD5 form of 16 colon-separated hex pairs, with or without the MD5: prefix ssh-keygen -l -E md5 prints

Look up an SSH key by its global ID and return the owning user. Returns: the key ID, title, public key, creation time, and the owning user (ID, username, name). See also: user.get_ssh_key, user.ssh_keys, user.ssh_keys_for_user.

  • Meta-herramienta: gitlab_user, acción key_get_with_user
  • Herramienta individual: gitlab_get_key_with_user
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: SSH Key: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
key_id integer sí SSH key ID

List users with filtering and pagination support. Returns: user summaries including ID, username, name, state, and profile URLs. See also: user.get, user.me, user.create.

  • Meta-herramienta: gitlab_user, acción list
  • Herramienta individual: gitlab_list_users
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: User: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
active boolean no Filter for active users only
admins boolean no Filter for administrators only
blocked boolean no Filter for blocked users only
created_after string no Filter users created after this date (RFC3339)
created_before string no Filter users created before this date (RFC3339)
custom_attributes object no Filter users by custom attribute key/value pairs (admin only). Different from with_custom_attributes, which only controls whether attributes are returned
exclude_active boolean no Exclude active users from the result
exclude_external boolean no Exclude external users from the result
exclude_humans boolean no Exclude human users from the result
exclude_internal boolean no Exclude internal (bot/system) users from the result
extern_uid string no Filter by external UID (use with provider)
external boolean no Filter for external users only
humans boolean no Filter for human (non-bot, non-internal) users only
order_by string (id, name, username, created_at, updated_at) no Order users by: id, name, username, created_at, or updated_at.
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
page_token string no Next page of a keyset listing: the next_page_token of the previous response of this action, passed back unchanged. It carries the position and every filter of the listing as GitLab read them, and those are what the next page is asked with, whatever filters are sent beside it. Leave it empty for the first page.
pagination string no Pagination method: ‘keyset’ for keyset-based pagination on large ordered result sets, or ‘offset’ (the default). Keyset avoids deep-offset cost, and a keyset page names the next one in next_page_token rather than next_page.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
provider string no Filter by external provider name (use with extern_uid)
public_email string no Filter by exact public email address
search string no Search users by name or username or email
sort string (asc, desc) no Sort order: asc or desc
two_factor string (enabled, disabled) no Filter by two-factor authentication status: enabled or disabled.
username string no Filter by exact username
with_custom_attributes boolean no Include custom attributes in the response (admin only)
without_project_bots boolean no Exclude project bot users from the result
without_projects boolean no Filter for users without any projects

List the impersonation tokens of a user. Returns: each token’s id, name, active flag, scopes, revoked flag, created_at, expires_at, and last_used_at, with pagination metadata. See also: user.get_impersonation_token, user.create_impersonation_token, user.revoke_impersonation_token.

  • Meta-herramienta: gitlab_user, acción list_impersonation_tokens
  • Herramienta individual: gitlab_list_impersonation_tokens
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Impersonation Token: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí GitLab user ID
order_by string no Column to order results by
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: ‘asc’ or ‘desc’
state string (all, active, inactive) no Filter by state: all, active, or inactive

List instance-level service accounts. Returns: service account summaries with ID, username, name, and email, with pagination metadata. Requires admin token. See also: user.create_service_account, user.update_service_account.

  • Meta-herramienta: gitlab_user, acción list_service_accounts
  • Herramienta individual: gitlab_list_service_accounts
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Service Account: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
order_by string (id, username) no Field to order by: id (default) or username
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
page_token string no Next page of a keyset listing: the next_page_token of the previous response of this action, passed back unchanged. It carries the position and every filter of the listing as GitLab read them, and those are what the next page is asked with, whatever filters are sent beside it. Leave it empty for the first page.
pagination string no Pagination method: ‘keyset’ for keyset-based pagination on large ordered result sets, or ‘offset’ (the default). Keyset avoids deep-offset cost, and a keyset page names the next one in next_page_token rather than next_page.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort direction (asc/desc)

Get the current authenticated user. Returns: account ID, username, name, state, avatar URL, and profile metadata. See also: user.list, user.current_user_status, user.emails.

  • Meta-herramienta: gitlab_user, acción me
  • Herramienta individual: gitlab_user_current
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: User: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente

Sin parámetros.

List a user’s memberships. Returns: source ID, name, type, and access level per membership. See also: user.get, user.associations_count, user.activities.

  • Meta-herramienta: gitlab_user, acción memberships
  • Herramienta individual: gitlab_get_user_memberships
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: User: Read en instancia (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: asc or desc
type string (Project, Namespace) no Membership type filter: Project (project memberships) or Namespace (group memberships).

Modify an existing user. Replacing the password, the email address or the external identity requires confirmation. Returns: the updated user profile metadata. See also: user.get, user.create, user.delete.

  • Meta-herramienta: gitlab_user, acción modify
  • Herramienta individual: gitlab_modify_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Update en instancia (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user to modify
admin boolean no Grant or revoke admin privileges
auditor (Premium) boolean no Grant or revoke auditor privileges (Premium/Ultimate)
avatar object no New avatar image to upload for the user, from a local file or base64 content
bio string no New bio text. Pass an empty string to remove it. Omit the field to leave it untouched
can_create_group boolean no Allow user to create groups
commit_email string no Email used for commits. Pass an empty string to remove it, so commits use the primary email, which GitLab then reports as the commit email. Omit the field to leave it untouched
confirm boolean no Confirms replacing what the account signs in or is recovered with: its password, its email address or its external identity. Pass true only after the user approves that. Only required when the call sends password, email, provider or extern_uid. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
email string no New email address
extern_uid string no External UID for the provider
external boolean no Mark or unmark as external
linkedin string no LinkedIn account. Pass an empty string to remove it. Omit the field to leave it untouched
location string no New location. Pass an empty string to remove it. Omit the field to leave it untouched
name string no New display name
note string no New admin note. Pass an empty string to remove it. Omit the field to leave it untouched
organization string no New organization. Pass an empty string to remove it. Omit the field to leave it untouched
password string no New password
private_profile boolean no Set profile as private
projects_limit integer no New maximum projects limit
provider string no External provider name (use with extern_uid)
public_email string no Publicly visible email address. Pass an empty string to remove it. Omit the field to leave it untouched
skip_reconfirmation boolean no Skip reconfirmation on email change
theme_id integer no GitLab theme ID for the user’s UI
twitter string no Twitter/X account. Pass an empty string to remove it. Omit the field to leave it untouched
username string no New username
view_diffs_file_by_file boolean no Show whitespace changes in diffs file by file
website_url string no User website URL. Pass an empty string to remove it. Omit the field to leave it untouched

Check whether a namespace path is taken. Returns: an exists flag and suggested alternative paths when the path is unavailable. See also: user.namespace_get, user.namespace_search.

  • Meta-herramienta: gitlab_user, acción namespace_exists
  • Herramienta individual: gitlab_namespace_exists
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Namespace: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
id string sí Namespace path to check for existence
parent_id integer no Parent namespace ID to scope the check

Get a single namespace by ID or path. Returns: the namespace with id, name, path, kind, full path, parent id, plan, trial state, and seat usage. See also: user.namespace_list, user.namespace_search.

  • Meta-herramienta: gitlab_user, acción namespace_get
  • Herramienta individual: gitlab_namespace_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Namespace: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
id string sí Namespace ID or path

List namespaces visible to the authenticated user. Returns: matching namespaces with id, name, path, kind, plan, seat usage, and pagination metadata. See also: user.namespace_get, user.namespace_search, group.list.

  • Meta-herramienta: gitlab_user, acción namespace_list
  • Herramienta individual: gitlab_namespace_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Namespace: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
order_by string no Column to order results by (e.g. id)
owned_only boolean no If true return only namespaces owned by the authenticated user
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
search string no Filter namespaces by search term
sort string (asc, desc) no Sort direction (asc, desc)
top_level_only boolean no If true return only top-level namespaces

Search namespaces by name or path. Returns: matching namespaces with id, name, path, kind, and pagination metadata. See also: user.namespace_list, user.namespace_get.

  • Meta-herramienta: gitlab_user, acción namespace_search
  • Herramienta individual: gitlab_namespace_search
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Namespace: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
query string sí Search query string for namespaces

Get the authenticated user’s global notification settings. Returns: the global notification level, notification email, and the per-event flags (issue, merge request, pipeline, note, and epic events) when the level is custom. See also: user.notification_global_update, user.notification_project_get, user.notification_group_get.

  • Meta-herramienta: gitlab_user, acción notification_global_get
  • Herramienta individual: gitlab_notification_global_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Notification Setting: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente

Sin parámetros.

Update the authenticated user’s global notification settings. Returns: the updated global notification level, notification email, and per-event flags. See also: user.notification_global_get, user.notification_project_update, user.notification_group_update.

  • Meta-herramienta: gitlab_user, acción notification_global_update
  • Herramienta individual: gitlab_notification_global_update
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Notification Setting: Update en usuario (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
close_issue boolean no Notify on issue close
close_merge_request boolean no Notify on MR close
failed_pipeline boolean no Notify on pipeline failure
fixed_pipeline boolean no Notify on pipeline fix
issue_due boolean no Notify on issue due date
level string (disabled, participating, watch, mention, custom) no Notification level: disabled, participating, watch, mention, custom
merge_merge_request boolean no Notify on MR merge
merge_when_pipeline_succeeds boolean no Notify on merge when pipeline succeeds
moved_project boolean no Notify on project move
new_epic (Premium) boolean no Notify on new epic
new_issue boolean no Notify on new issue
new_merge_request boolean no Notify on new MR
new_note boolean no Notify on new note
notification_email string no Email address for notifications. Pass an empty string to remove it, so notifications go to the primary email, which GitLab then reports here. Omit the field to leave it untouched
push_to_merge_request boolean no Notify on push to MR
reassign_issue boolean no Notify on issue reassign
reassign_merge_request boolean no Notify on MR reassign
reopen_issue boolean no Notify on issue reopen
reopen_merge_request boolean no Notify on MR reopen
success_pipeline boolean no Notify on pipeline success

Get the authenticated user’s notification settings for a group. Returns: the group notification level, notification email, and per-event flags when the level is custom. See also: user.notification_group_update, user.notification_global_get, user.notification_project_get.

  • Meta-herramienta: gitlab_user, acción notification_group_get
  • Herramienta individual: gitlab_notification_group_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Notification Setting: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
group_id string/integer sí Group ID or URL-encoded path

Update the authenticated user’s notification settings for a group. Returns: the updated group notification level, notification email, and per-event flags. See also: user.notification_group_get, user.notification_global_update, user.notification_project_update.

  • Meta-herramienta: gitlab_user, acción notification_group_update
  • Herramienta individual: gitlab_notification_group_update
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Notification Setting: Update en usuario (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
group_id string/integer sí Group ID or URL-encoded path
close_issue boolean no Notify on issue close
close_merge_request boolean no Notify on MR close
failed_pipeline boolean no Notify on pipeline failure
fixed_pipeline boolean no Notify on pipeline fix
issue_due boolean no Notify on issue due date
level string (disabled, participating, watch, global, mention, custom) no Notification level: disabled, participating, watch, global, mention, custom
merge_merge_request boolean no Notify on MR merge
merge_when_pipeline_succeeds boolean no Notify on merge when pipeline succeeds
moved_project boolean no Notify on project move
new_epic (Premium) boolean no Notify on new epic
new_issue boolean no Notify on new issue
new_merge_request boolean no Notify on new MR
new_note boolean no Notify on new note
push_to_merge_request boolean no Notify on push to MR
reassign_issue boolean no Notify on issue reassign
reassign_merge_request boolean no Notify on MR reassign
reopen_issue boolean no Notify on issue reopen
reopen_merge_request boolean no Notify on MR reopen
success_pipeline boolean no Notify on pipeline success

Get the authenticated user’s notification settings for a project. Returns: the project notification level, notification email, and per-event flags when the level is custom. See also: user.notification_project_update, user.notification_global_get, user.notification_group_get.

  • Meta-herramienta: gitlab_user, acción notification_project_get
  • Herramienta individual: gitlab_notification_project_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Notification Setting: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
project_id string/integer sí Project ID or URL-encoded path

Update the authenticated user’s notification settings for a project. Returns: the updated project notification level, notification email, and per-event flags. See also: user.notification_project_get, user.notification_global_update, user.notification_group_update.

  • Meta-herramienta: gitlab_user, acción notification_project_update
  • Herramienta individual: gitlab_notification_project_update
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Notification Setting: Update en usuario (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
project_id string/integer sí Project ID or URL-encoded path
close_issue boolean no Notify on issue close
close_merge_request boolean no Notify on MR close
failed_pipeline boolean no Notify on pipeline failure
fixed_pipeline boolean no Notify on pipeline fix
issue_due boolean no Notify on issue due date
level string (disabled, participating, watch, global, mention, custom) no Notification level: disabled, participating, watch, global, mention, custom
merge_merge_request boolean no Notify on MR merge
merge_when_pipeline_succeeds boolean no Notify on merge when pipeline succeeds
moved_project boolean no Notify on project move
new_issue boolean no Notify on new issue
new_merge_request boolean no Notify on new MR
new_note boolean no Notify on new note
push_to_merge_request boolean no Notify on push to MR
reassign_issue boolean no Notify on issue reassign
reassign_merge_request boolean no Notify on MR reassign
reopen_issue boolean no Notify on issue reopen
reopen_merge_request boolean no Notify on MR reopen
success_pipeline boolean no Notify on pipeline success

Reject a pending user sign-up. Returns: confirmation with the user ID and action. Permanently deletes the pending user. See also: user.approve, user.get, user.list.

  • Meta-herramienta: gitlab_user, acción reject
  • Herramienta individual: gitlab_reject_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Reject en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

Revoke an impersonation token for a user by token id. Returns: a confirmation naming the user_id and token_id with the revoked flag set. See also: user.list_impersonation_tokens, user.get_impersonation_token.

  • Meta-herramienta: gitlab_user, acción revoke_impersonation_token
  • Herramienta individual: gitlab_revoke_impersonation_token
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Impersonation Token: Revoke en instancia (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
token_id integer sí Impersonation token ID to revoke
user_id integer sí GitLab user ID

Set the current user’s status. Returns: the updated emoji, message, availability, and clear-status time. See also: user.current_user_status, user.get_status.

  • Meta-herramienta: gitlab_user, acción set_status
  • Herramienta individual: gitlab_set_user_status
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Status: Update en usuario (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
availability string (not_set, busy) no User availability: not_set (clear busy state) or busy.
clear_status_after string (30_minutes, 3_hours, 8_hours, 1_day, 3_days, 7_days, 30_days) no Duration after which the status auto-clears: 30_minutes, 3_hours, 8_hours, 1_day, 3_days, 7_days, or 30_days.
emoji string no The emoji to set for the status (e.g. coffee or speech_balloon). This action replaces the whole status: an empty or omitted emoji gets GitLab’s default speech_balloon while a message or a busy availability remains, and an empty emoji and message with availability not_set remove the status
message string no The status message text. This action replaces the whole status: pass an empty string, or leave it out, for no message. An empty message and emoji with availability not_set remove the status

List the current user’s SSH keys. Returns: key summaries with ID, title, fingerprint, usage type, and expiry. See also: user.get_ssh_key, user.add_ssh_key, user.delete_ssh_key.

  • Meta-herramienta: gitlab_user, acción ssh_keys
  • Herramienta individual: gitlab_list_ssh_keys
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: SSH Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: asc or desc

List a specific user’s SSH keys by ID or username. Returns: key summaries with ID, title, fingerprint, usage type, and expiry. See also: user.get_ssh_key_for_user, user.add_ssh_key_for_user, user.delete_ssh_key_for_user.

  • Meta-herramienta: gitlab_user, acción ssh_keys_for_user
  • Herramienta individual: gitlab_list_ssh_keys_for_user
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: SSH Key: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
user_id string/integer sí The ID or username of the user
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: asc or desc

List the authenticated user’s to-do items with optional filtering and pagination. Returns: to-do items with action, target object, project, author, state, and pagination metadata. See also: user.todo_mark_done, user.todo_mark_all_done.

  • Meta-herramienta: gitlab_user, acción todo_list
  • Herramienta individual: gitlab_todo_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Todo: Read en usuario (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
action string (assigned, review_requested, mentioned, build_failed, marked, approval_required, unmergeable, directly_addressed, member_access_requested, review_submitted, ssh_key_expired, ssh_key_expiring_soon, transfer_failed, merge_train_removed, okr_checkin_requested, added_approver, duo_pro_access_granted, duo_enterprise_access_granted, duo_core_access_granted, duo_workflow_input_required) no Filter by action, for example assigned, mentioned, review_requested, build_failed or transfer_failed (a project or group transfer GitLab failed in the background)
author_id integer no Filter by author user ID
group_id integer no Filter by group ID
order_by string no Order results by field (e.g. id, created_at). Combine with sort.
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
project_id integer no Filter by project ID
sort string (asc, desc) no Sort direction: asc or desc.
state string (pending, done) no Filter by state: pending or done (default: pending)
type string (Commit, Issue, WorkItem, MergeRequest, DesignManagement::Design, AlertManagement::Alert, Namespace, Project, Key, WikiPage::Meta, Epic, Vulnerability, User, ComplianceManagement::Projects::ComplianceViolation, Ai::DuoWorkflows::Workflow) no Filter by target type, for example Issue, MergeRequest, Commit, Epic, Project or Namespace (a group)

Mark all pending to-do items as done. Requires confirmation. Returns: a confirmation that all items were cleared. See also: user.todo_list, user.todo_mark_done.

  • Meta-herramienta: gitlab_user, acción todo_mark_all_done
  • Herramienta individual: gitlab_todo_mark_all_done
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Todo: Update en usuario (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente

Sin parámetros.

Mark a single to-do item as done. Returns: a confirmation naming the to-do item ID. See also: user.todo_list, user.todo_mark_all_done.

  • Meta-herramienta: gitlab_user, acción todo_mark_done
  • Herramienta individual: gitlab_todo_mark_done
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Todo: Update en usuario (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
id integer sí ID of the to-do item to mark as done

Unban a previously banned user. Returns: confirmation with the user ID and action. See also: user.ban, user.unblock, user.get.

  • Meta-herramienta: gitlab_user, acción unban
  • Herramienta individual: gitlab_unban_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Unban en instancia (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

Unblock a previously blocked user. Returns: confirmation with the user ID and action. See also: user.block, user.activate, user.get.

  • Meta-herramienta: gitlab_user, acción unblock
  • Herramienta individual: gitlab_unblock_user
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: User: Unblock en instancia (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
user_id integer sí The ID of the user

Update an instance-level service account. Returns: updated service account object including email and unconfirmed_email. Requires admin token. See also: user.create_service_account, user.list_service_accounts.

  • Meta-herramienta: gitlab_user, acción update_service_account
  • Herramienta individual: gitlab_update_instance_service_account
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Service Account: Update en instancia (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
service_account_id integer sí Service account ID to update
email string no New email for the service account
external boolean no Make the service account an external user (true), which reaches internal and private projects only where it is a member, or a regular one (false)
name string no New name for the service account
username string no New username for the service account

Upload the current user’s avatar. Returns: the updated user profile including the new avatar URL. GitLab 19 responds with only avatar_url, so other profile fields (including id) may be empty. Use user.current for the full profile. Provide filename and exactly one of file_path or content_base64. See also: user.me, user.modify.

  • Meta-herramienta: gitlab_user, acción upload_avatar
  • Herramienta individual: gitlab_upload_user_avatar
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Avatar: Update en usuario (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
filename string sí Avatar filename (e.g. avatar.png)
content_base64 string no Base64-encoded image content. Only one of file_path or content_base64 should be provided.
file_path string no Absolute path to a local image file on the MCP server filesystem. Alternative to content_base64 for files too large to base64-encode. Only one of file_path or content_base64 should be provided.