轻流OA icon

轻流OA

轻流OA API集成,支持通讯录、任务委托、应用管理、数据操作等功能

通讯录 - 成员 → 通过邮箱或手机号获取成员userId

AI-generated

Summary

Query the userId of a member from the Qingflow OA address book using either their email or phone number.

Inputs

  • 查询方式 (required) — Choose whether to search by email or phone.
  • 邮箱 (required) — The email address of the user to query (used if 查询方式 is "email" or if both email and phone are provided).
  • 手机号 (required) — The phone number of the user to query (used if 查询方式 is "phone" and email not provided).
  • Options — Additional optional settings including batching controls and request timeout.

Output shape

a single JSON object containing the userId of the member if found, or an error object if not.

Supports batch processing of multiple input items either serially or in parallel according to batching options. If multiple or no matches occur, the output corresponds accordingly. Errors can be returned per item when 'Continue On Fail' is enabled.

Examples

Example 1: Retrieve a userId by email

Set 查询方式 to '邮箱' and specify the 邮箱 field with the user's email address.

Example 2: Retrieve a userId by phone

Set 查询方式 to '手机号' and specify the 手机号 field with the user's phone number.

Links

Discussion