GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a list of projects associated with a specific user in GitLab using the GitLab API v4. It is useful for scenarios where you need to fetch projects owned by or accessible to a particular user, such as for project management, reporting, or integration workflows.

Use Case Examples

  1. Fetch all projects for a user by their user ID to display in a dashboard.
  2. Retrieve projects filtered by visibility or archived status for audit purposes.
  3. Get projects sorted by creation date or last activity for monitoring user contributions.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public data access.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Collection of optional query parameters to filter and customize the projects list, such as order_by, sort, archived, visibility, search, owned, starred, membership, and pagination options.
Path Parameters Path parameter user_id specifying the ID or username of the user whose projects are being retrieved.

Output

JSON

  • id - Unique identifier of the project
  • name - Name of the project
  • path - Path of the project
  • created_at - Project creation timestamp
  • updated_at - Last update timestamp of the project
  • visibility - Visibility level of the project (private, internal, public)
  • archived - Boolean indicating if the project is archived
  • statistics - Optional project statistics if requested
  • custom_attributes - Optional custom attributes included in the response

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user_id path parameter is correctly set and corresponds to an existing user in GitLab.
  • Verify that the authentication token has sufficient permissions to access the user's projects, especially for private or internal projects.
  • Check that optional query parameters are correctly formatted and valid according to GitLab API specifications.
  • If skipping authentication, ensure the requested projects are publicly accessible to avoid authorization errors.

Links

Discussion