> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/inventories/users.md).

# Users

Search the user accounts that your directory, identity and SaaS adapters report, and see which tools know each user.

The User Inventory lists the users that your adapters reported, with one record per user. Use it to look up an account, to see which tools know a user, to find accounts that have not logged on for a while, and to export user lists. The console page is called **User Inventory** and its menu entry is **Users**.

### Where the data comes from

The inventory is built during each discovery from the adapters that report users, such as directories, identity providers and SaaS tools. Aggregation merges records that have the same user name into one user, so a person with accounts in several tools appears once and the row lists every adapter that reported them. The merged record carries the common user fields (for example name, email, domain, last log on time and group membership) and keeps each adapter's own fields under that adapter's tab on the detail page.

If more than one adapter reports the same field, the order set in Discovery Ordering decides which value is shown. Discovery Ordering supports the User Inventory since OctoXLabs 6.8.1.

### Open the inventory

In the left menu, choose **Inventories** > **Users**. The list opens on the latest completed discovery, and **Discovery Date** lets you look at an earlier run. The toolbar, the chart strip and the query box work as described in Inventories.

### Columns

The default columns are below. **PrimaryKey** is fixed and opens the detail page. Use **Columns** > **Edit Columns** to add more, including the fields of single adapters, and **Reset Columns** to restore this set.

| Column           | What it shows                                  |
| ---------------- | ---------------------------------------------- |
| `Adapters`       | The adapters that reported the user, as logos. |
| `PrimaryKey`     | The user key. It opens the detail page.        |
| `Email`          | The email address of the user.                 |
| `LastLogOnTime`  | The last log on time.                          |
| `LastLogOffTime` | The last log off time.                         |
| `CreatedTime`    | When the account was created.                  |

{% hint style="info" %}
Some adapters do not fill the common fields. For example, Active Directory users do not fill `MembersOf` and `LastLogOnTime`. Query the adapter's own fields in that case. See the Users tab of Fields by inventory.
{% endhint %}

### Filter and search

Type a query in the search box or build one with **Query Wizard**. Clicking an adapter logo or a tag in the list adds it to the query. Other columns are not clickable on this page.

```
Username startswith octox
```

The user fields are listed in the OctoXLabs Query Reference. Use **Save As** to keep a query, see Create and Save Queries.

### Actions

* **Actions** > **Add Tag** tags the users you selected. This is the only bulk action on the page.
* **Download** creates a report of the current query and columns as **CSV**, **PDF** or **XLSX**. The report is built in the background and appears under **Reports**. See Generate a Report.
* **Saved Queries** and **Tags**, under **Users** in the left menu, list the saved queries and the tags of this inventory.

### The user detail page

Click a **PrimaryKey** to open the user. The cards at the top show:

* The user key, with an avatar.
* **Last Logon Time** and **Last Logoff Time**. A missing value is shown as N/A.
* **Data Source**, the adapters that reported the user, and **Member Of**, the groups the user belongs to.
* Tags and notes for the user.

Below the cards, choose **Pretty View**, **Raw** or **Dependency Map**. **Pretty View** shows the data of the selected adapter tab. The **OctoXLabs** tab is the merged record, and the other tabs show what each adapter contributed. Depending on the adapter, a tab can have its own sections, for example **Roles**, **Accounts**, **Phishing Reports**, **Secret Permissions** or **Risk Factors**. **Raw** shows the same data as JSON, and **Dependency Map** shows the relations of the user, see Dependency Map. The **Discovery Date** selector shows the user as it was in an earlier discovery.

The User Explorer lists users cumulatively and is not tied to one discovery.

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Asset Inventory</strong></td><td>The devices that your users log on to.</td><td></td></tr><tr><td><strong>OctoXLabs Query Reference</strong></td><td>Field names and operators for user queries.</td><td></td></tr><tr><td><strong>User Explorer</strong></td><td>Search users across all discoveries.</td><td></td></tr><tr><td><strong>Discovery Ordering</strong></td><td>Choose which adapter wins when values differ.</td><td></td></tr></tbody></table>
