> For the complete documentation index, see [llms.txt](https://www.cakewalk.security/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.cakewalk.security/docs/human-access/connections-and-integrations/integration-guides/posthog.md). Agents can also search and read this documentation through its [MCP server](https://www.cakewalk.security/docs/~gitbook/mcp).

# Posthog

Set up Posthog auto-provisioning with an admin account and MFA, plus access sync with a personal API key.

### :sparkles: Auto Provisioning

| **Authentication method** | Username & password                                  |
| ------------------------- | ---------------------------------------------------- |
| **Required permissions**  | `Owner` and `Admin`                                  |
| **Required metadata**     | None                                                 |
| **MFA**                   | Supported. Setup details [here](#how-to-enable-mfa). |

<details>

<summary><strong>How to enable MFA</strong></summary>

1. Navigate to Posthog and click on your user's avatar in the bottom left corner.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/e2dab7d5-bcfb-46be-8594-b7eee20256ae/ascreenshot.jpeg?tl_px=0,265\&br_px=1376,1035\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=119,572)

2. Select `Account settings` from the menu.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/30dabc8e-8688-4d39-96c8-e3e5ac60d01f/ascreenshot.jpeg?tl_px=0,154\&br_px=1376,923\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=178,277)

3\. Click `Set up 2FA`.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/e48ca1ad-259b-477e-a4e6-01f28ed60b0d/ascreenshot.jpeg?tl_px=0,265\&br_px=1376,1035\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=477,481)

4\. Copy the MFA secret.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/26bdd44f-5da0-4afa-afe8-6c59a3c5e918/ascreenshot.jpeg?tl_px=408,265\&br_px=1784,1035\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=524,279)

5\. Navigate to Cakewalk and paste in the `MFA Secret`.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/fa38f1fd-57c9-4b76-934c-330e0aeb71a8/ascreenshot.jpeg?tl_px=661,39\&br_px=1900,732\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=827,277)

6\. Copy the `One-Time Password`.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/70cd8e27-c6bf-4bf8-8c86-85aad17d79f5/ascreenshot.jpeg?tl_px=661,151\&br_px=1900,844\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=1024,277)

7\. Paste the `One-Time Password` into the `Authentication token` field.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/b8742d7d-dcd9-4707-8184-0a3736d391f7/ascreenshot.jpeg?tl_px=235,265\&br_px=1611,1035\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=524,349)

8\. Click `Submit` to complete the process.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-07-31/e15eaf8f-f07a-4fe5-a900-40e16faa7093/ascreenshot.jpeg?tl_px=358,265\&br_px=1735,1035\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=524,391)

</details>

***

### :arrows\_counterclockwise: Access Sync

Access Sync for PostHog allows you to automatically synchronize user data with Cakewalk, including permission levels.

| **Authentication method**  | Personal API key                                             |
| -------------------------- | ------------------------------------------------------------ |
| **Synced user attributes** | Email, Name and Permissions                                  |
| **Required scopes**        | `organization:read`, `organization_member:read`, `user:read` |
| **Region**                 | EU hosted PostHog accounts                                   |

<details>

<summary><strong>How can I create a PostHog personal API key?</strong></summary>

1. Sign in to PostHog.
2. Open **Settings** > **Personal API keys** in your account settings.
3. Click **Create a personal API key**.
4. Give the key a recognizable label.
5. Set the access scope to organization wide, then grant the scopes listed above.
6. Copy the key value. PostHog shows it exactly once.
7. Navigate back to Cakewalk and paste it into the `API Key` field.

</details>

## Quick Setup

1. Navigate to **App Governance** → **PostHog** → **Users table** → **Sync Users**
2. Enter your PostHog personal API key
3. Users will sync automatically

#### Learn more

* [PostHog: Personal API keys](https://posthog.com/docs/api/personal-api-keys)


---

# 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://www.cakewalk.security/docs/human-access/connections-and-integrations/integration-guides/posthog.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.
