How Multi-Tenant SaaS Apps Should Handle SCIM Deprovisioning Without Data Loss
When an employee leaves one organization, their enterprise identity provider sends a SCIM deprovisioning request to shared SaaS applications, but this should only remove that organization's access — not the user's global identity. A common bug arises when a single database row conflates a person's login identity, organization membership, and roles, causing a delete operation to accidentally wipe the user from all connected tenants. Proper multi-tenant design separates user identity from per-organization memberships, so each SCIM connection can only modify records belonging to its authorized tenant. RFC 7644 leaves multi-tenancy enforcement to the service provider, meaning the application itself must verify which tenant a SCIM credential is allowed to administer. The global user identity should only be deleted when no other organizational memberships remain and the application's data retention policy explicitly permits it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in