HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation updates a user's membership role within a specific space in the HumHub platform. It allows changing the role of a user (e.g., member, moderator, admin) in a given space by specifying the space ID and user ID. This is useful for managing user permissions and roles within collaborative spaces in HumHub, such as promoting a member to a moderator or admin.

Use Case Examples

  1. Updating a user's role in a project space from member to moderator to grant them additional permissions.
  2. Changing a user's role to admin in a community space to allow full administrative control.

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 membership role is to be updated.
User ID The ID of the user whose membership role is to be updated in the specified space.
Role The new role to assign to the user in the space. Options include member, moderator, and admin.

Output

JSON

  • role - The updated role of the user in the space membership.
  • userId - The ID of the user whose role was updated.
  • spaceId - The ID of the space where the membership was updated.

Dependencies

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

Troubleshooting

  • Common issues include providing invalid space ID or user ID, which will result in API errors indicating resource not found.
  • Incorrect role values or missing required parameters will cause the API to reject the request.
  • Authentication failures due to invalid or expired credentials will prevent the update operation.

Discussion