GitLab API

GitlabTool

Actions1000

Overview

This node operation allows creating a new user in GitLab via the GitLab API (POST /api/v4/users). It is useful for automating user management tasks such as adding new team members or managing user accounts programmatically within GitLab.

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 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.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have sufficient permissions to create users.
  • Verify the baseUrl is correct and accessible.
  • Check that the request body conforms to the expected schema for creating users in GitLab.
  • Common errors include authentication failures, permission denied, or invalid request body format. These can be resolved by verifying credentials, permissions, and request data.

Links

Discussion