Wechat Work Node icon

Wechat Work Node

Wechat Work Node

Overview

This node integrates with a WeChat Work (企业微信) environment to manage user accounts. Specifically, the "删除成员" (Delete Member) operation under the "用户管理" (User Management) resource allows you to remove a user from the organization's directory by specifying their UserID. This is useful for automating user lifecycle management tasks such as offboarding employees or cleaning up inactive accounts.

Practical examples include:

  • Automatically deleting users who have left the company based on HR system triggers.
  • Bulk removing users during organizational restructuring.
  • Integrating with other systems to synchronize user status and permissions.

Properties

Name Meaning
*成员UserID The unique identifier of the user account to delete, corresponding to the management console's user ID. This is a required string input.

Output

The node outputs JSON data representing the result of the delete operation for each input item. If the deletion is successful, the output typically contains confirmation details returned by the WeChat Work API. In case of failure, the output includes an error message describing what went wrong.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the WeChat Work API.
  • The node makes HTTP requests to the WeChat Work API endpoints, specifically to manage users.
  • Proper configuration of the API base URL, corporate ID, and secret is necessary.
  • The node depends on internal helper methods for making authenticated requests and handling responses.

Troubleshooting

  • Common issues:

    • Invalid or expired API credentials can cause authentication failures.
    • Providing a non-existent or incorrect UserID will result in an error from the API indicating the user was not found.
    • Network connectivity problems may prevent the node from reaching the WeChat Work API.
  • Error messages:

    • Errors thrown during execution include descriptive messages from the API or internal errors caught by the node.
    • If "continue on fail" is disabled, the node stops execution on the first error; enabling it allows processing subsequent items despite errors.
  • Resolution tips:

    • Verify that the API credentials are correct and have sufficient permissions.
    • Double-check the UserID values before running the node.
    • Ensure network access to the WeChat Work API endpoints.
    • Use the node’s logging/debugging features to get detailed error information.

Links and References

Discussion