:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(slack): request full Slack scope set in all environments (#57177)
Marcus Hofba8b5b5f2d6e
diff --git a/posthog/models/integration.py b/posthog/models/integration.pyindex e1efa21bee04..8f9f78e9053d 100644--- a/posthog/models/integration.py+++ b/posthog/models/integration.py@@ -270,22 +270,16 @@ POSTHOG_SLACK_SCOPE = ",".join("groups:read","chat:write","chat:write.customize",- *(- [ # New scopes that came with the update adding PostHog AI integration with Slack- "app_mentions:read",- "channels:history",- "groups:history",- "links:read",- "links:write",- "reactions:read",- "reactions:write",- "team:read",- "users:read",- "users:read.email",- ]- if settings.DEBUG or settings.CLOUD_DEPLOYMENT == "DEV"- else []- ),+ "app_mentions:read",+ "channels:history",+ "groups:history",+ "links:read",+ "links:write",+ "reactions:read",+ "reactions:write",+ "team:read",+ "users:read",+ "users:read.email",])