GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific email address associated with a user in GitLab. It is useful for managing user email addresses, such as removing outdated or incorrect emails from a user's profile. For example, an admin can use this operation to delete a secondary email address of a user by specifying the user ID and the email ID to be removed.

Use Case Examples

  1. Deleting a user's secondary email address by providing the user ID and the email ID.
  2. Removing an email address from a user's GitLab account to maintain accurate contact information.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but here it will be DELETE for this operation.
Path Parameters The path parameters required for the request, specifically the user ID and the email ID to delete.

Output

JSON

  • success - Indicates whether the email deletion was successful.
  • message - Additional information or confirmation message about the deletion.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user ID and email ID are correct and exist in GitLab; otherwise, the deletion will fail.
  • Authentication errors may occur if the API key is missing or invalid; verify the API key credentials.
  • Permission errors may arise if the authenticated user does not have rights to delete user emails; check user permissions.

Links

Discussion