Actions126
- User Actions
- Group Actions
- Content Actions
- Post Actions
- Comment Actions
- Like Actions
- Activity Actions
- Notification Actions
- Space Actions
- Calendar Actions
- CFile Directory Actions
- CFile Actions
- CFile Item Management Actions
- Survey Actions
- Task Actions
- Task List Actions
- Wiki Page Actions
- Mail Conversation Actions
- Mail Entry Actions
- Mail Recipient Actions
- Session Actions
- File Actions
- Space Membership Actions
- Topic Actions
- Survey Answer Actions
- Survey Answers Actions
- Wiki Page Revision Actions
- Mail Tag Actions
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
- Updating a user's role in a project space from member to moderator to grant them additional permissions.
- 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.
