HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation creates a new membership for a user in a specified space within the HumHub platform. It is useful for automating the process of adding users to spaces, which can be beneficial in scenarios such as onboarding new team members, managing community memberships, or organizing users into groups for collaboration. For example, when a new employee joins a company, this node can automatically add them to relevant project spaces without manual intervention.

Use Case Examples

  1. Automatically add a user to a project space when they are onboarded.
  2. Add a user to a community space based on their subscription status.

Properties

Name Meaning
Authentication Method of authentication to use for the API request (Basic Auth or JWT Token).
ID The ID of the space where the user membership will be created.
User ID The ID of the user to be added to the space.
Silent Whether to send a notification to the user about being added to the space (true to send silently without notification, false to notify).

Output

JSON

  • id - The ID of the space where the membership was created.
  • userId - The ID of the user added to the space.
  • silent - Indicates if the notification was sent silently.

Dependencies

  • Requires authentication credentials: either Basic Auth or JWT Token for HumHub API.

Troubleshooting

  • Ensure the space ID and user ID are valid and exist in the HumHub system to avoid errors.
  • If the 'silent' option is set incorrectly, the user may receive unwanted notifications or none at all.
  • Authentication errors may occur if the provided credentials are invalid or expired; verify and update credentials as needed.

Links

Discussion