Actions33
- Mini Program Actions
- Official Account Actions
- WeChat Pay Actions
- WeChat Work Actions
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 useful in scenarios such as:
- Automating employee data retrieval from WeChat Work for HR or IT systems.
- Enriching workflows with user profile details to personalize communications or access control.
- Synchronizing user information between WeChat Work and other business applications.
For example, you could use this node to fetch a user's department, position, contact details, and status in WeChat Work to update your internal directory automatically.
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 as returned by the WeChat Work API. This typically includes fields such as:
- User's name
- Department(s)
- Position
- Mobile phone number
- Email address
- Status (active/inactive)
- Other profile details available in WeChat Work
The exact structure depends on the WeChat Work API response for the user info endpoint.
No binary data output is produced by this operation.
Dependencies
- Requires an active subscription and valid API key credential for the external N8N Tools API service that acts as a proxy or middleware for WeChat API calls.
- Requires credentials for authenticating with the WeChat Work API via the node's configured authentication method.
- The node internally uses a helper class (
WeChatApi) to interact with the WeChat Work API endpoints. - Proper configuration of these credentials and permissions in n8n is necessary for successful execution.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly set up and active.
- User not found or invalid User ID: Ensure the provided User ID exists in the WeChat Work organization and is correctly spelled.
- Permission errors: The API credentials must have sufficient permissions to access user information in WeChat Work.
- Network or connectivity issues: Confirm that n8n can reach the external API endpoints without firewall or proxy restrictions.
- Malformed JSON inputs: For operations requiring JSON input, ensure the JSON is well-formed; although not applicable for this specific operation, it is relevant for others.
Links and References
- WeChat Work Official API Documentation
- n8n Documentation - Creating Custom Nodes
- WeChat Work User Management API (for reference on user info fields)