Connecter PostHog à Lutril
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.
Accès demandés
- 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)
Étapes de configuration
- 1
Sign in to PostHog with an account that is an admin or an owner of the organization. A plain member cannot change anybody's level, so the key would read the roster and fail every grant.
PostHog organizations - 2
Open Settings, then Personal API keys, and create a key scoped to organization member read and organization member write. Nothing else is needed: Lutril never reads your events, insights or feature flags.
Create a personal API key - 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
To time box PostHog access, set the access levels on the PostHog app in your catalogue to member, admin and owner. Those are PostHog's own level names, so what somebody requests is exactly what they get, and Lutril converts them to PostHog's numbers at the edge.
PostHog members API - 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.
Où le créer
Documentation officielle
Connectez-vous à Lutril pour brancher PostHog, ou réservez une démo et nous le mettons en place avec vous. Sans slides.