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 and the Get User Info operation, this node retrieves detailed information about a user within a WeChat Work organization by their User ID.

This functionality is beneficial in scenarios where you need to automate workflows involving employee or member data management in WeChat Work, such as syncing user profiles with other systems, verifying user details before sending messages, or managing access rights based on user attributes.

Practical example:
You can use this node to fetch user details like name, department, position, and contact info from WeChat Work when a new record is created in your CRM, enabling seamless synchronization of employee data.

Properties

Name Meaning
User ID The unique identifier of the user in WeChat Work whose information you want to retrieve. This is a required string input.

Output

The node outputs JSON data containing the user's information retrieved from WeChat Work. The exact structure depends on the WeChat Work API response but typically includes fields such as:

  • User's name
  • Department(s)
  • Position
  • Mobile phone number
  • Email address
  • Status and other profile details

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the WeChat Work API via an API key credential or OAuth2 token configured in n8n.
  • The node attempts to validate the subscription and API key against an external validation service before executing operations.
  • Proper permissions must be granted to the API credentials to access user information in the WeChat Work environment.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API credentials are correctly set up and have not expired or been revoked.
  • User not found or invalid User ID: Ensure the provided User ID exists in the WeChat Work organization and is correctly spelled.
  • Permission denied errors: Confirm that the API credentials have sufficient permissions to read user information.
  • Network or timeout issues: Check network connectivity and API endpoint availability.

Links and References

Discussion