Actions9
Overview
This node operation removes one or more users from a specified group in the Zalo platform. It is useful for managing group membership by programmatically removing members who should no longer be part of the group, such as when moderating group participants or automating user management workflows.
Practical examples include:
- Automatically removing inactive or banned users from a group.
- Managing group membership dynamically based on external criteria.
- Cleaning up group members after an event or campaign.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm (groupId) | The unique identifier of the group from which users will be removed. |
| ID Người Dùng (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) (userIds) | One or multiple user IDs to remove from the group, separated by commas if multiple. |
Output
The output JSON contains the response from the Zalo API regarding the removal operation. It typically includes status information and details about the success or failure of removing the specified users from the group.
Example structure:
{
"status": "success",
"response": {
// API-specific response details about the removal operation
}
}
No binary data output is produced by this node operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo platform.
- Depends on the Zalo API service to perform group member removal.
- The node uses internal helper classes to handle API requests, requiring proper configuration of credentials and network access.
Troubleshooting
Common issues:
- Invalid or missing group ID or user IDs can cause the operation to fail.
- Network or authentication errors if the API key credential is incorrect or expired.
- Attempting to remove users not present in the group may result in partial failures or error messages.
Error messages:
- Errors thrown by the underlying API call are caught and returned as part of the output JSON if the node is set to continue on failure.
- If not continuing on failure, the node throws an error indicating the problem, including the item index for batch operations.
Resolutions:
- Verify that the group ID and user IDs are correct and exist.
- Ensure the API key credential is valid and has necessary permissions.
- Check network connectivity and API endpoint availability.
- Use the node's error handling options to manage partial failures gracefully.
Links and References
- Zalo Official API Documentation
- Zalo Group Management API Reference
- n8n documentation on Creating Custom Nodes