Actions25
用户管理 → 通过手机号获取用户ID
AI-generatedSummary
Retrieve the user ID associated with a given mobile phone number from the WeChat Work corporate directory.
Inputs
- *手机号 (required) — The mobile phone number of the user as listed in the WeChat Work corporate directory.
Output shape
a JSON object containing the user ID corresponding to the provided mobile number.
The operation sends a POST request to the endpoint
/cgi-bin/user/getuseridwith the mobile number in the request body. It returns user identification data as JSON. Errors from the API are thrown as node operation errors.
Examples
Example 1: Using the mobile number input '13800138000' to retrieve the corresponding user ID.
Set resource to '用户管理' and operation to '通过手机号获取用户ID'. Provide the mobile phone number '13800138000' as input.