> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/sonar/administration/user-activity/users-traces.md). Agents can also search and read this documentation through its [MCP server](https://wiki.datadike.com/~gitbook/mcp).

# Users Traces

The event-by-event record of one user's activity: applications and websites in the foreground, and sign-ins blocked or sessions ended by access policies.

## What this is and when to use it

**Observability › Users Traces** lists, one row per event, what a Windows user did on the monitored devices. Each row is a **trace**: a period during which an application or a website was in the foreground, with its start time and duration, or an event raised by an [access policy](https://wiki.datadike.com/sonar/administration/access/access-policies.md) on the device.

Use it when a total in [Users Behavior](https://wiki.datadike.com/sonar/administration/user-activity/users-behavior.md) needs explaining — which window took those two hours, which site was open at 10:40, on which device — or to check that an access policy blocked a sign-in outside the allowed hours.

The events come from the productivity module on Windows devices. What it records, and for how long it is kept, is described in [Users Behavior](https://wiki.datadike.com/sonar/administration/user-activity/users-behavior.md#what-the-productivity-module-records).

## Before you start

* A role with **View Traces** (group **Productivity** in **Admin Center › Roles**). Without it the menu entry does not appear.
* **List Sites** (group **Clients & Sites**), to fill the **Site** list.
* The productivity module installed on the devices. See [The productivity module](https://wiki.datadike.com/sonar/deploy-operate/productivity-module.md).

## Steps

1. Open **Observability › Users Traces**.
2. In **Site**, choose the site. Only sites where a device has reported activity are listed.
3. In **User**, choose the Windows username. The **Traces** list loads, newest first.
4. Under **Time window**, click **24H**, **7D**, **14D** or **30D**, or the calendar button for a custom period. Until you choose one, the list covers all the activity still kept for the user.
5. Under **Source**, pick the kinds of event to show. **All** shows every kind; **Apps**, **URLs**, **Block Login** and **Session Terminated** can be combined.
6. Under **Sort By**, choose **Most Recent** or **Oldest**.
7. To narrow further, open **Event Filters**, tick entries under **Apps**, **Domains** or **Agents**, and click **Apply**. **Clear** removes them.
8. Click a row to open **Event Flow**, the detail panel of that event.
9. To take the list with you, click the download icon (**Export to CSV**).

Scroll down to load more rows. **END OF RESULTS** marks the last one.

## What you should see

The **Traces** list has these columns. The columns button next to the export icon hides or shows them.

| Column       | Content                                                                                                   |
| ------------ | --------------------------------------------------------------------------------------------------------- |
| **Date**     | When the event started                                                                                    |
| **Duration** | How long it lasted                                                                                        |
| **Type**     | **Application**, **Website**, **Blocked Login** or **Session Terminated**                                 |
| **Details**  | The executable, or the address of the page. For a website, an arrow button opens the address in a new tab |
| **Activity** | The window title                                                                                          |
| **Device**   | Device hostname, site and the Windows username                                                            |

The two policy types come from the device's access policy:

* **Blocked Login** — the user tried to sign in outside the allowed hours and the sign-in was refused.
* **Session Terminated** — the allowed window ended and the user's session was signed out.

Above the list, a badge shows each active filter (**Date**, **Source**, **Sort**). The **x** on a badge removes that filter; **Clear Filters** removes all of them.

**Event Flow** shows the event as four linked boxes: **User** (name and username), **Location** (**Site**, **Machine**, **Logged User**), **Activity** (**Type**, **Activity**, **Source**) and **Details** (**Duration**, **Started At**).

The CSV file is named `productivity_events_<user>_<date>.csv` and has one row per event, with the columns `started_at`, `duration_seconds`, `event_type`, `title`, `executable`, `browser_url`, `agent_hostname`, `site_name` and `username`. Times are in your browser's time zone.

## How to verify it worked

1. On a monitored device, sign in as the user and keep an application in the foreground for a minute.
2. A few minutes later, open **Users Traces** for that user with **24H**. The application must appear as an **Application** row with the device's hostname under **Device**.
3. With an access policy assigned to the user, try to sign in outside the allowed hours. Select **Block Login** under **Source**: a **Blocked Login** row must appear for that device.

## Common errors

| Symptom                                | Cause                                                                                                                 | Fix                                                                        |
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| The **Site** list is empty             | No device has reported activity yet, or the role lacks **List Sites**                                                 | Check that the productivity module runs on the devices; add the permission |
| "No events found"                      | The user has no events in the chosen window                                                                           | Widen the time window, or pick **All** under **Source**                    |
| "No events match the selected filters" | The **Event Filters** exclude every event                                                                             | Click **Clear** under **Event Filters**                                    |
| A recent activity is missing           | The device sends its events in batches, a few minutes apart, and foreground periods under 10 seconds are not recorded | Wait a few minutes and reload with the refresh button                      |
| **Export to CSV** is disabled          | No user selected                                                                                                      | Choose a user first                                                        |

## Field reference

| Field                       | What it does                                        | Accepted values                                                                            | Default           |
| --------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------ | ----------------- |
| **Site**                    | Limits the **User** list to users seen on that site | Sites with reported activity                                                               | First site        |
| **User**                    | Whose events are listed                             | Usernames seen on the site                                                                 | First user        |
| **Time window**             | Period of the events                                | **24H**, **7D**, **14D**, **30D**, or a custom period                                      | All kept activity |
| **Source**                  | Kinds of event shown                                | **All**, or any combination of **Apps**, **URLs**, **Block Login**, **Session Terminated** | **All**           |
| **Sort By**                 | Order of the list                                   | **Most Recent**, **Oldest**                                                                | **Most Recent**   |
| **Event Filters › Apps**    | Only events of these executables                    | Executables seen for the user                                                              | None              |
| **Event Filters › Domains** | Only events on these domains                        | Domains seen for the user                                                                  | None              |
| **Event Filters › Agents**  | Only events on these devices                        | Devices where the user was seen                                                            | None              |

## Related pages

* [Users Behavior](https://wiki.datadike.com/sonar/administration/user-activity/users-behavior.md) — totals and patterns for the same data
* [Access policies](https://wiki.datadike.com/sonar/administration/access/access-policies.md) — where blocked sign-ins and terminated sessions come from
* [The productivity module](https://wiki.datadike.com/sonar/deploy-operate/productivity-module.md)
* [Roles and permissions](https://wiki.datadike.com/sonar/administration/identities/roles.md)
