> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get User IDs

Obtain user IDs by emails or mobile numbers.

Required scope for using this action:

* `Obtain user ID via email or mobile number`

<Note>
  External Documentation

  To learn more, visit the [Lark documentation](https://open.larksuite.com/document/server-docs/contact-v3/user/batch_get_id).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter      | Description                                                    |
  | -------------- | -------------------------------------------------------------- |
  | Emails         | A comma-separated list of email addresses to get user IDs for. |
  | Mobile Numbers | A comma-separated list of mobile numbers to get user IDs for.  |
  | User ID Type   | The type of users to retrieve their IDs.                       |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter        | Description                                           |
  | ---------------- | ----------------------------------------------------- |
  | Include Resigned | Select to include resigned employees in the response. |
</div>

## Example Output

```json theme={"dark"}
{
	"code": 0,
	"msg": "success",
	"data": {
		"user_list": [
			{
				"user_id": "ou_979112345678741d29069abcdef089d4",
				"email": "zhanxxxxx@a.com",
				"status": {
					"is_frozen": false,
					"is_resigned": false,
					"is_activated": true,
					"is_exited": false,
					"is_unjoin": false
				}
			},
			{
				"user_id": "ou_919112245678741d29069abcdef096af",
				"email": "lisixxxx@a.com",
				"status": {
					"is_frozen": false,
					"is_resigned": false,
					"is_activated": true,
					"is_exited": false,
					"is_unjoin": false
				}
			},
			{
				"user_id": "ou_46a087654321a1dc920ffab8fedc823f",
				"mobile": "13xxxxxx678",
				"status": {
					"is_frozen": false,
					"is_resigned": false,
					"is_activated": true,
					"is_exited": false,
					"is_unjoin": false
				}
			},
			{
				"user_id": "ou_01b081675121a1dc920ffab97cdc017a",
				"mobile": "138xxxxxx79",
				"status": {
					"is_frozen": false,
					"is_resigned": false,
					"is_activated": true,
					"is_exited": false,
					"is_unjoin": false
				}
			}
		]
	}
}
```

## Workflow Library Example

[Get User Ids with Lark and Send Results Via Email](https://library.blinkops.com/workflows/get-user-ids-with-lark-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-user-ids-with-lark-and-send-results-via-email/canvas" />
</div>
