---
title: "Retrieve a user's activity across an account"
method: GET
path: "/accounts/{account_id}/users/{id}/activity"
tags: ["Reporting"]
---

# Retrieve a user's activity across an account

`GET /accounts/{account_id}/users/{id}/activity`

Last-active time and recent action counts for a single user, binned by each workspace in the account where the user was active over the given time range. Restricted to company administrators and company-scoped API keys (USER_MANAGEMENT or REPORTING); the returned totals cover all workspaces in the account.

## Path parameters

- `account_id` string, required
- `id` string, required

## Query parameters

- `start_time` integer
- `end_time` integer

## Response `200`

The user's activity across the account

- UserAccountActivity — A single user's activity across an account's workspaces
  - `user_id` string — The user's ID
  - `email` string — The user's email address
  - `name` string — The user's full name
  - `account_id` string — Id of the account
  - `interval_start` integer — Starting time of the interval in epoch milliseconds
  - `interval_end` integer — Ending time of the interval in epoch milliseconds
  - `last_active_time` integer — The user's most recent activity across the account in epoch milliseconds. Omitted when there is no activity in the range.
  - `total_actions` integer — Total number of automator events by this user across the account in the time range
  - `by_workspace` UserWorkspaceActivity[] — Per-workspace activity for this user, limited to workspaces in the account where the user was active
    - `workspace_id` string — Id of the workspace
    - `action_count` integer — Number of automator events by this user in the workspace in the time range
    - `last_active_time` integer — The user's most recent activity in this workspace in epoch milliseconds

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — User is not a member of this account
- `default` — Unexpected error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
