WeChat Enhanced icon

WeChat Enhanced

WeChat Enhanced Node - Suporte completo para Mini Programs, Official Accounts, WeChat Pay e WeChat Work

Overview

The "WeChat Enhanced" node provides comprehensive integration with various WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically, for the WeChat Work resource, it supports operations such as managing users (create, update, delete), sending messages, and handling departments.

The Delete User operation under the WeChat Work resource allows you to remove a user from your WeChat Work organization by specifying their User ID. This is useful in scenarios where an employee leaves the company or when cleaning up inactive accounts.

Practical example:
You can automate the removal of former employees from your WeChat Work directory by triggering this node with their User IDs, ensuring your organization's contact list stays current without manual intervention.


Properties

Name Meaning
User ID The unique identifier of the user to be deleted in WeChat Work.

Output

The node outputs a JSON object representing the response from the WeChat Work API after attempting to delete the specified user. Typically, this will include success confirmation or error details if the deletion failed.

No binary data output is involved in this operation.


Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service, which acts as a proxy/validation layer before calling WeChat APIs.
  • Requires credentials for authenticating with WeChat Work API (configured in n8n).
  • The node internally uses a helper class to interact with WeChat APIs via HTTP requests.

Troubleshooting

  • Invalid subscription or API key error:
    If you receive errors indicating invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.

  • User not found or deletion failure:
    Ensure the provided User ID exists in your WeChat Work organization and that your credentials have sufficient permissions to delete users.

  • Network or permission issues:
    Check network connectivity and that all required credentials are properly configured in n8n.

  • Error message format:
    Errors thrown by the node typically include descriptive messages from the underlying API calls, helping identify issues like unsupported operations or missing parameters.


Links and References

Discussion