Actions25
Overview
This node integrates with a WeChat Work (企业微信) environment to perform various operations on resources such as users. Specifically, the "用户管理" resource with the "批量删除成员" operation allows users to delete multiple members in bulk by specifying their UserIDs. This is useful for administrators who need to efficiently remove several user accounts from their organization's WeChat Work system at once, for example when offboarding employees or cleaning up inactive accounts.
Properties
| Name | Meaning |
|---|---|
| *成员UserID列表 | A list of member UserIDs to be deleted. Each entry corresponds to a user's unique ID in the management console. Supports up to 200 UserIDs per batch. |
The property is a fixed collection allowing multiple values, each containing a required numeric UserID.
Output
The node outputs JSON data representing the result of the batch deletion operation. For each input item, it returns either the success response or an error object if the deletion failed. The output is structured as an array of JSON objects, each corresponding to one input item processed.
No binary data output is indicated.
Dependencies
- Requires valid API credentials for WeChat Work, including a base URL, corporate ID, and secret key.
- The node uses these credentials to authenticate API requests to the WeChat Work platform.
- Proper configuration of these credentials in n8n is necessary for successful execution.
Troubleshooting
- Common issues:
- Invalid or expired API credentials will cause authentication failures.
- Providing more than 200 UserIDs in the list may exceed API limits.
- Network connectivity problems can prevent API calls.
- Error messages:
- Errors thrown during the call function include detailed messages and stack traces logged internally.
- If
continueOnFailis disabled, the node stops execution on the first error; enabling it allows processing remaining items despite errors.
- Resolution tips:
- Verify API credentials and permissions.
- Ensure UserID list size does not exceed 200.
- Check network access to the WeChat Work API endpoint.