: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
# Generated by Django 4.2.26 on 2025-11-28 14:03
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import posthog.models.utils
class Migration(migrations.Migration):
dependencies = [
("posthog", "0923_add_quick_filters"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("ee", "0031_agentartifact"),
]
operations = [
migrations.CreateModel(
name="SCIMProvisionedUser",
fields=[
("updated_at", models.DateTimeField(auto_now=True, null=True)),
(
"id",
models.UUIDField(
default=posthog.models.utils.uuid7, editable=False, primary_key=True, serialize=False
),
),
(
"identity_provider",
models.CharField(
choices=[
("okta", "Okta"),
("entra_id", "Microsoft Entra ID"),
("google", "Google Workspace"),
("onelogin", "OneLogin"),
("other", "Other"),
],
max_length=50,
),
),
("username", models.CharField(max_length=255)),
("active", models.BooleanField(default=True)),
("created_at", models.DateTimeField(auto_now_add=True)),
(
"organization_domain",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="scim_provisioned_users",
to="posthog.organizationdomain",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="scim_provisions",
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"indexes": [
models.Index(fields=["organization_domain", "username"], name="ee_scimprov_organiz_6d83ff_idx")
],
},
),
migrations.AddConstraint(
model_name="scimprovisioneduser",
constraint=models.UniqueConstraint(
fields=("user", "organization_domain"), name="unique_user_organization_domain"
),
),
]