Skip to content

Commit c807337

Browse files
authored
docs: add organization-wide activity logs documentation (#16793)
Co-authored-by: inkeep[bot] <257615677+inkeep[bot]@users.noreply.github.com>
1 parent ed73728 commit c807337

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

contents/docs/settings/activity-logs.mdx

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,24 @@ This adds organization-level events to your activity feed, such as member invita
196196

197197
> **Note**: This setting also affects notifications. If you subscribe to activity log notifications, you will only receive notifications for organization-level events if this setting is enabled.
198198
199+
### Organization-wide activity logs
200+
201+
Organization admins and owners can view activity logs across all projects in their organization from a single view:
202+
203+
1. Go to **Settings****Project****Activity logs**
204+
2. Click the **Organization** toggle at the top of the page
205+
206+
In organization mode:
207+
208+
- Activity from all projects in your organization is shown, along with organization-level events
209+
- A **Project** column indicates which project each activity belongs to
210+
- A **Project** filter lets you narrow results to specific projects
211+
- Export is not available in this viewuse the project view for exports
212+
213+
You can deep-link directly to the organization view by appending `?view=organization` to the activity logs URL.
214+
215+
> **Note**: Organization-wide activity logs are only available to organization admins and owners. Other members see the project view only.
216+
199217
### Resource history
200218

201219
You can view the change history for any individual resource. When viewing a feature flag, dashboard, experiment, or other resource, click the **History** tab to see all changes made to that specific item over time.
@@ -271,6 +289,9 @@ Filter by the team member who performed the action. Select one or multiple users
271289
**Scope**
272290
Filter by resource type. Scopes include Feature flags, Experiments, Dashboards, Insights, Surveys, Cohorts, and more. Select multiple scopes to see changes across different resource types.
273291

292+
**Project** (organization mode only)
293+
Filter by specific projects within your organization. This filter only appears when viewing organization-wide activity logs. Select one or multiple projects to narrow down results.
294+
274295
**Activity**
275296
Filter by the type of action performed. Activities include created, updated, deleted, enabled, disabled, merged, split, and others depending on the resource type.
276297

@@ -317,6 +338,8 @@ Activity logs can be exported for offline analysis, compliance reporting, or int
317338

318339
Exports include all log entry fields and respect any filters you have applied.
319340

341+
> **Note**: Export is currently only available in the project view. Organization-wide exports are not yet supported.
342+
320343
## Common use cases
321344

322345
### Investigating unexpected changes
@@ -377,14 +400,15 @@ To use the activity log API endpoints, authenticate using one of PostHog's [auth
377400

378401
### Endpoints
379402

380-
PostHog provides two activity log endpoints:
403+
PostHog provides three activity log endpoints:
381404

382-
| Endpoint | Description |
383-
| ---------------------------------------------------- | --------------------------------------------------------- |
384-
| `GET /api/projects/@current/activity_log/` | Basic activity log retrieval with simple filtering |
385-
| `GET /api/projects/@current/advanced_activity_logs/` | Full-featured endpoint with advanced filtering and export |
405+
| Endpoint | Description |
406+
| ----------------------------------------------------- | -------------------------------------------------------------------------------- |
407+
| `GET /api/projects/@current/activity_log/` | Basic activity log retrieval with simple filtering |
408+
| `GET /api/projects/@current/advanced_activity_logs/` | Full-featured endpoint with advanced filtering and export |
409+
| `GET /api/organizations/<id>/advanced_activity_logs/` | Organization-wide activity logs (admin/owner only), supports `team_ids[]` filter |
386410

387-
Both endpoints return activity logs for the current project. If **Show organization activity** is enabled in project settings, organization-level events are also included.
411+
The project endpoints return activity logs for the current project. If **Show organization activity** is enabled in project settings, organization-level events are also included. The organization endpoint returns activity logs across all projects in the organization and is restricted to organization admins and owners.
388412

389413
### API reference
390414

0 commit comments

Comments
 (0)