> For the complete documentation index, see [llms.txt](https://docs.peakcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.peakcommerce.com/product/using-peakcommerce/users-and-user-roles/user-history.md).

# User History

When access goes wrong — a permission that shouldn't have been granted, a user who was deactivated unexpectedly — you need to know who changed what, and when. PeakCommerce records every change to users (and to the rest of your tenant) so you can answer those questions with evidence.

## Where to look

* **Per-user activity** — open a user from the **user menu** (your name, bottom-left) → **Settings → Users**. The detail page's **Activity**, **Logins**, and **Impersonations** tabs show that user's recent events: profile and password changes, sign-ins, and any times they were impersonated or impersonated others.
* **Tenant-wide audit log** — for the full record, open the **user menu** (your name, bottom-left) → **Settings → Audit Logs** (under Observability). Each entry shows the time, the actor, the item changed, the type of change, and the before/after values. Open an entry for its full detail.

## How long it's kept

Retention is governed by **Settings → Audit Log Retention**. Older entries age out according to that policy, so export or review anything you need to keep beyond the retention window.

## Gotchas

* Impersonation ("Log in as") sessions are attributed to the operator who started them, not silently logged as the customer — check the Impersonations tab to see who acted as whom.
* For sign-in and SSO events specifically, see also [Authentication & Security](https://docs.peakcommerce.com/product/using-peakcommerce/authentication-and-security.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.peakcommerce.com/product/using-peakcommerce/users-and-user-roles/user-history.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
