GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the email addresses associated with a specific user in GitLab by making a GET request to the GitLab API endpoint `/api/v4/users/{id}/emails`. It is useful for scenarios where you need to fetch user email information for user management, notifications, or auditing purposes within GitLab.

Use Case Examples

  1. Fetch emails of a user by their user ID to verify contact information.
  2. Retrieve user emails to synchronize with an external mailing list or CRM system.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, default is GET.
Query Parameters Optional query parameters for pagination such as page number and items per page.
Path Parameters Path parameters specifying the user ID whose emails are to be retrieved.

Output

JSON

  • emails - List of email addresses associated with the specified user
  • pagination
    • page - Current page number of the results
    • per_page - Number of items per page in the results
    • total - Total number of email entries available

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance to avoid 404 errors.
  • Check that the GitLab API key credential is correctly configured and has sufficient permissions to access user email information.
  • If pagination parameters are used, verify that page and per_page values are within acceptable ranges to avoid empty or incomplete results.

Links

Discussion