HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation updates an existing user in the HumHub platform. It allows modifying user account details such as username, email, status, and content container ID, as well as updating the user's profile information either through a JSON parameter or a UI collection of profile fields. Additionally, it supports updating the user's password. This operation is useful for managing user data dynamically within workflows, such as updating user information based on external inputs or administrative actions.

Use Case Examples

  1. Updating a user's email and username based on an external CRM system.
  2. Changing a user's profile details like first name, last name, and contact information.
  3. Resetting or changing a user's password programmatically.

Properties

Name Meaning
Authentication Method of authentication to use for the API request (Basic Auth or JWT Token).
ID The unique identifier of the user to update.
Account Collection of user account details to update, including username, email, status, and content container ID.
Json Parameter Profile Flag to indicate if the profile fields should be passed as a JSON object instead of individual UI fields.
Profile (JSON) The user's profile data as a JSON object, required if Json Parameter Profile is true.
Profile Collection of individual profile fields to update if Json Parameter Profile is false, including personal and contact information.
Password Collection containing the new password for the user.

Output

JSON

  • id - The unique identifier of the updated user.
  • account - The updated account details of the user.
  • profile - The updated profile information of the user.
  • password - Information about the updated password if changed.

Dependencies

  • An API key credential or Basic Auth credentials for HumHub API authentication.

Troubleshooting

  • Ensure the user ID provided exists; otherwise, the update will fail with a not found error.
  • If using JSON for profile fields, ensure the JSON is valid to avoid parsing errors.
  • Check that the authentication credentials are correct and have sufficient permissions to update user data.
  • Common error messages include invalid JSON format, missing required fields, or authentication failures. Verify input data and credentials accordingly.

Links

  • HumHub User API Guide - Official HumHub documentation for user-related API endpoints, including updating users.

Discussion