GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node interacts with the GitLab API to create a new user via the POST /api/v4/users endpoint. It is useful for automating user management tasks in GitLab, such as adding new team members or managing user accounts programmatically.

Use Case Examples

  1. Automatically create new GitLab users when onboarding employees.
  2. Integrate user creation into a CI/CD pipeline or admin dashboard.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method to use for the request, defaulting to GET but can be set to POST for user creation.

Output

JSON

  • id - The unique identifier of the created user.
  • username - The username of the created user.
  • email - The email address of the created user.
  • name - The full name of the created user.
  • state - The state of the user account (e.g., active, blocked).
  • created_at - Timestamp when the user was created.
  • web_url - URL to the user's profile page on GitLab.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the API key has sufficient permissions to create users.
  • Verify the baseUrl is correct and accessible.
  • Check that the request body conforms to the required schema for creating users.
  • Common errors include authentication failures, permission denied, and invalid request body format.

Links

Discussion