# User ID

{% hint style="info" %}
User ID is a unique identifier created for clients to distinguish users.&#x20;
{% endhint %}

To send messages based on the ID, proper integration is essential. When a user logs in, link the customer-managed user ID with the FlareLane device to distinguish between members and non-members.

## **Integrating User ID**

When a user successfully **logs in or registers**, assign a user ID so that the device can be identified using the customer’s user ID. Here's an example:

* [**Web SDK**](/guide-for-developers/web-sdk-reference.md) **/** [**Mobile SDK**](/guide-for-developers/mobile-sdk-reference.md): `FlareLane.setUserID("USER_ID")`

***

## **Checking User ID**&#x20;

Once the integration is complete, you can create groups to distinguish between members and non-members by using a filter in the segment that checks for the presence of a user ID.

<figure><img src="/files/Xp4w0FQvGSA9RZWLcLiP" alt="FlareLane All Devices page showing how to add User ID which identifies the customers as members or non-members"><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

## Filtering Users

Using the user ID, you can segment your users into registered users and unregistered users, as shown below:

<figure><img src="/files/MkniunEAoNcJPPSCj5im" alt="FlareLane Segments page showing how to use User ID to create members and non-members segments"><figcaption><p>Image by FlareLane</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.flarelane.com/data-integration/user-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
