--- title: "Users and Segments" slug: "users-and-segments" description: "Manage and segment your Userflow users effortlessly with filters, attributes, and event-based actions for targeted flows and analytics." tags: ["User Segmentation", "Event-Based Segments"] updated: 2026-11-13T16:34:51Z published: 2026-11-13T16:34:51Z canonical: "help.userflow.com/users-and-segments" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.userflow.com/llms.txt > Use this file to discover all available pages before exploring further. # Users and Segments The Users page lists everyone Userflow has identified through your Userflow.js installation or API. Segments are saved groups of those users or companies, which you can use to target flows, checklists and other content. Select **Users** in the sidebar to get started. ![Users page listing identified users with segments on the left](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/users.png) ## Creating a segment There are several different types of segments in Userflow: - **Default segments** - Pre-built segments created automatically by Userflow (such as "All Users") that provide immediate access to broad user groups without any setup required. - **Attribute-based segments** - Dynamic segments that filter users or companies based on specific properties like subscription plan, signup date, or custom attributes you've defined. - **Event-based segments** - Behavioral segments that group users based on their actions within your product, such as users who clicked a specific button or viewed a particular page within a defined timeframe. - **Manual segments** - Custom segments where you directly select specific users through the interface or upload a CSV file containing user emails or IDs, perfect for targeting predetermined lists. - **Integration-based segments** - Segments powered by data from your connected analytics tools like Heap, Amplitude, or Mixpanel, allowing you to leverage existing user cohorts from your analytics stack. ### Default segments These are pre-created segments in Userflow, e.g., "All users." **These cannot be edited.** ### Segment based on a user or company attribute filter You can create your own segments by changing the filter, the attribute to sort by, and which columns to display. A **Save segment** button will appear, which lets you update an existing segment or save it as a new one. ![Filter based segment](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/filter-based-segment.png) > [!NOTE] > Note > > The User ID and Company ID used in the `userflow.js` `identify()` call is not created as a Userflow attribute by default. Instead of creating filter-based segments to target a specific list of users/companies we recommend using a manual segment (see Manual segment based on CSV upload or UI selection). > > If you still want to retrieve the User ID or Company ID and use them in a filter, you need to send them as attributes via the `userflow.js` second argument or the API (similar to how other attributes are sent). ### Segment based on product event filter Event-based segments allow you to create user and company segments based on specific actions on your product natively within Userflow. For example, create a dynamic segment of users who view your billing page by selecting that event or using our no-code event tracker (see [No-code event tracking](/docs/no-code-event-tracking)) to create it. 1. Select **Users** or **Companies** from the sidebar. 2. Click **Add filter** and select **Event**. 3. Select the desired event (e.g., "clicked X button"). ![Add filter menu with Event selected on the Users page](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/event-based-segment01.png) 1. Set the frequency and time frame (e.g., "at least once in the last 7 days") along with any additional conditions based on parameters associated with an event ( e.g., "device is Tablet", "Flow type is Checklist") ![Event filter with frequency, time frame and event property conditions](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/event-based-segment02.png) 1. **Save Segment:** Save your new event-based segment. Segments update in real-time, ensuring accurate targeting. You can use event-based segments to target flows and in-app content. ### Manual segment based on CSV upload or UI selection Click **New** above the segment list to create a manual segment. Users can be added to manual segments either by selecting them in the list of all users or by uploading a CSV file. You can match users based on their email address or user ID. This is useful when you want to target a list of users you have in a spreadsheet. ![Manual segment](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/manual-segment.png) #### If your CSV upload doesn't match anyone Work through these in order. **Are you matching on something Userflow actually holds?** You can match on email address or user ID. If your app identifies users by an internal ID and doesn't also send `email` as an attribute, Userflow has no email to match against, and a file of email addresses will match nobody. Check a few users on the **Users** page first and confirm the column you're matching on has values in it. **Are the user IDs the same ones your app sends?** The ID to match on is the one passed to `userflow.identify()`. A database primary key, a CRM record ID or an internal reference won't match unless that's the value your app sends. **Is the file plain CSV?** Export as CSV rather than saving a spreadsheet with an `.xlsx` extension renamed. **Do the values need cleaning?** Leading or trailing spaces, quoted values and mixed casing in email addresses are worth ruling out before anything else. If matching still comes up empty, add two or three users to the segment by selecting them in the list instead. If that works and the upload doesn't, the problem is in the file rather than the segment. ### Integration-based segment Using one of our analytics integrations, such as [Heap](/docs/heap), [Amplitude](/docs/amplitude), or [Mixpanel](/docs/mixpanel), you can also create integration-driven segments. These segments will display a logo for the tool from which they are coming for easy visual identification. ![Heap segment](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/heap-segment.png) ## How do I target a flow or checklist at a segment? You can start flows/checklists with the User and Company segments you create on the users/companies pages. Just "Add condition" -> Segments to your flow/checklist auto-start conditions. See [Flow targeting and audience rules](/docs/flow-targeting-and-audience-rules). ![Segment condition](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/segment-condition.png) ## How do I find a specific user? You can organize, search, and filter the user list by using the column icon in the top-right to select which columns to display. ![Users columns](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/users-columns.png) You can quickly do a text search, which will search through name, email, ID, and it can even find users where their associated company name matches. ![Users free text search](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/users-q.png) For a more detailed search, click **Add filter** to search based on specific user attributes. This works just like when you add **Attribute** conditions in the flow builder. You can even find users based on their company or company membership attributes. ![Users filter condition](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/users-condition.png) ### Opening a single user Click any row in the user list to open that user's page. Their attributes are listed on the right, and below their details are three tabs: **Activity feed**, **Sessions** and **Companies**. The **Activity feed** lists the events Userflow has recorded for that user, newest first, grouped by day and stamped with the time. It covers events your app sends, events picked up by your event trackers, and Userflow's own events as the user moves through your content, such as Page Viewed, Flow Started, Flow Step Seen and Flow Completed. It is the quickest way to check whether an event is reaching Userflow at all, and when. It also records problems: if a tooltip is not appearing, you may see **Tooltip Target Missing** here against the moment it failed. Companies have the same view. Open a company from the **Companies** page to see its activity. ### Can I export a user's or company's Activity feed? The Activity feed on a user's or company's page can't be exported. There's no export button for it, and the Userflow API can send events to Userflow but can't list or download them. To get event data out of Userflow: - **New events, as they happen:** stream them to another tool through an integration, such as Segment, Mixpanel, or HubSpot, or subscribe to the event webhook topic. This covers events from the moment you set it up, not earlier ones. - **Past events for specific users or companies:** use the [Userflow MCP](/docs/mcp). Your AI tool can read a user's or company's event log. For example, ask it: "List every event for jane@acme.com in the last 30 days." ## What happens if you change a user's ID? If you're migrating your users to new user IDs, for example after moving to a new database or ID format, read this before your app starts sending the new IDs. Userflow knows each user by the user ID your app passes to `userflow.identify()`. If your app starts sending a different ID for the same person, Userflow treats them as a new user. It creates a new profile, and the person's flow progress, checklist progress and event history stay on the old profile. They may see flows they've already completed, and they're counted as a separate user. Userflow can't merge two user profiles into one. ### How to change user IDs without losing history To move your users to new IDs, change the IDs in Userflow with the REST API before your app starts sending the new ones. 1. Make a list of each user's current ID and new ID. 2. Send the list to `POST https://api.userflow.com/user_id_changes`, up to 100 changes per request: ```json {  "data": [    { "old_id": "old1", "new_id": "new1" },    { "old_id": "old2", "new_id": "new2" }  ] } ``` 1. Once the IDs are changed, release the version of your app that sends the new IDs to `userflow.identify()`. Things to know about the user ID change endpoint: - Each new ID must not already exist in Userflow. If a user with that ID exists, the request fails. - Old IDs that Userflow doesn't recognize are skipped, so sending the same change twice is safe. - Requests need your REST API key. See the [Userflow API Reference](https://help.userflow.com/docs/userflow-api-reference). ### If your app already sends new user IDs If you've already switched and users have new profiles without their history, contact support before you change anything else. We'll help you get their history back onto one profile. The sooner you get in touch, the less progress is split across two profiles. ## Companies page If you have Companies set up, you will see a comparable Companies page. You can sort and filter companies and establish company segments. To learn more, see [Configuring companies](/docs/companies). ### Importing companies from a CSV You can upload companies from a spreadsheet, and the upload can create companies that aren't in Userflow yet. The upload lives inside a company segment rather than on the **Companies** page itself, so make the segment first: 1. On the **Companies** page, click **New** above the segment list and name your segment. 2. In the empty segment, click **Add companies via CSV**. You can also use **Add/remove companies via CSV** at the top of any company segment. 3. Choose which column in your file holds the **Company ID**. 4. Leave **Create companies if they don't exist in Userflow** ticked to add new companies as well as match existing ones. Untick it to add only companies Userflow already knows about. 5. The first row is treated as a header. If your file has no header row, tick **Include first row (it's not a header)**. 6. Click **Add companies to segment**. **Companies are matched on Company ID only.** There's no option to match on company name, so the IDs in your file need to be the ones your app sends in `userflow.group()`. This is different from the user CSV upload, which matches on email address or user ID. You can also add companies to a segment by selecting them from another segment, which is easier for short lists. ### Sending companies from your app Most companies arrive from your product rather than a file: - `userflow.group()` in Userflow.js, called alongside `userflow.identify()`, which creates or updates the company and adds the user to it in one go. - **The API**, using `POST /groups`, or by embedding `groups` when you create or update a user. See the [Userflow API Reference](https://help.userflow.com/docs/userflow-api-reference). Both are upserts: send the same company ID again and the attributes merge into the existing record rather than duplicating it. ### Counting the users in a company segment The **Users** page can't be filtered by a company segment. Company segments only appear on the **Companies** page, and they list companies rather than the users in them. Flows and checklists can still target those users. Add a **Segments** condition and choose **User is in [company segment]**. To get a count of the users: - **If the companies share an attribute** (for example, region or plan), go to **Users**, click **Add filter**, filter on that company attribute and click **Save segment**. The new user segment gives you a live count. - **If they don't share one**, export the company segment and export all users, then match users to companies on company ID in a spreadsheet. A **Companies** export shows only the most recent user for each company, so you can't use it as the user list on its own. ## What can't segments do? ### Known limitation: segments can't reference other segments Userflow segments are built from attribute, event, and membership conditions — they can't currently take another saved segment as a condition (for example, "exclude anyone who is in any of these other segments"). To get a similar result, rebuild the underlying conditions directly in the segment you're creating, or use a manual segment (CSV upload or selection) for a fixed list. Nested/compound segments are on our roadmap. ### Known limitation: negating an event condition with a "Where" sub-filter returns 0 users If you negate an event condition (e.g., "has NOT done X") and also add a "Where" sub-filter on that same event (e.g., "where country = Germany"), the segment will return 0 users. This is expected given how the filter evaluates: since the event never happened, there's no event instance for the "Where" sub-filter to check against, so the combined condition can never be satisfied. **Workaround:** instead of negating the event, use a positive frequency check — for example, "event X happened 0 times in [timeframe]" — and apply your "Where" condition to a different, positive event instead of the negated one. ## Related - [Configuring companies](/companies.md)