# PostHog + Lutril: setup guide

> Lutril connects to PostHog with a personal API key and reads your organization members with their membership level and whether they have two factor enabled. Access is time boxed from both ends: a grant invites somebody or raises the membership level on an account they already have, and the deadline writes the previous level back or removes the membership. Lutril shows and stores the level NAMES rather than PostHog's numeric levels, because an access level of 8 in a Slack message tells a requester nothing.

Source: https://www.lutril.com/integrations/posthog
Category: Product
Auth: api_key
Last verified: 2026-11-09

---

## Setup

1. [object Object]
2. [object Object]
3. Copy the key when it appears. PostHog shows it once.
4. Find your organization ID. It is the UUID in Settings, then Organization.
5. In Lutril, connect PostHog, paste the key and the organization ID. Leave the base URL empty for the US cloud, set https://eu.posthog.com for the EU cloud, or your own address if you self host.
6. [object Object]
7. A grant only ever raises a level. Anyone who already holds the level they asked for, or a higher one, is left exactly as they were, so a deadline can never take away access that Lutril did not grant.
8. PostHog requires an organization to keep at least one owner, so a change that would remove the last one is refused with an explanation rather than attempted.
9. Removing somebody takes them out of the organization and leaves their PostHog account alone, so the next grant invites them back. Lutril never deletes a PostHog account.

## Access requested

- organization member read (list the organization members and read one membership)
- organization member write (invite, raise a level for a time boxed grant, restore the previous one, and remove a membership)

## References

- [PostHog documentation](https://posthog.com/docs/api/members)
- [PostHog console](https://us.posthog.com/settings/user-api-keys)
- [PostHog members API](https://posthog.com/docs/api/members)
- [PostHog invites API](https://posthog.com/docs/api/invites)
- [Organizations and projects](https://posthog.com/docs/data/organizations-and-projects)
- [Organization settings](https://posthog.com/docs/settings/organizations)
