HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation creates a new user in the HumHub platform. It supports setting user account details such as username, email, status, and content container ID, along with user profile information either as a JSON object or through a UI collection of profile fields. The password for the new user is also required. This operation is useful for automating user management tasks, such as onboarding new users with predefined profiles and credentials in HumHub.

Use Case Examples

  1. Automatically create new users in HumHub when a new employee joins a company, setting their profile details and password.
  2. Batch create users from a CSV file by mapping CSV columns to the node's input properties.
  3. Create users with complex profile data by passing JSON-formatted profile information.

Properties

Name Meaning
Authentication Method of authentication to use for the API request (Basic Auth or JWT Token).
Username The username of the user to be created.
Email The email address of the user to be created.
Status The status of the user, represented as a number.
Content Container ID The ID of the content container associated with the user.
Json Parameter Profile Flag indicating if the profile fields should be passed as a JSON object instead of UI fields.
Profile (JSON) The user profile data as a JSON object, required if Json Parameter Profile is true.
Profile The user profile data as a collection of individual fields, required if Json Parameter Profile is false.
Password The password for the new user.

Output

JSON

  • id - The unique identifier of the created user.
  • account
    • username - The username of the created user.
    • email - The email of the created user.
    • status - The status of the created user.
    • contentcontainer_id - The content container ID associated with the created user.
  • profile - The profile information of the created user.

Dependencies

  • HumHub API

Troubleshooting

  • Ensure the profile JSON is valid if using the JSON profile parameter; invalid JSON will cause an error.
  • Required fields such as username, email, and password must be provided; missing these will cause the operation to fail.
  • Authentication credentials must be correctly configured for either Basic Auth or JWT Token; incorrect credentials will result in authentication errors.

Links

Discussion