A contractor uses your app for two customers. One lets her edit a project brief; the other lets her read an assigned brief. When the first contract ends, removing her login would interrupt work for both.
The application needs to remove one customer's access while preserving the person's identity and remaining assignments.
Give identity, membership and access separate records
In this fictional project tracker, Maya works with Northwind and Harbor:
| Record | Northwind | Harbor |
|---|---|---|
| Sign-in identity | The same Maya identity | The same Maya identity |
| Customer membership | Member of Northwind | Member of Harbor |
| Assignment | Project editor on Launch | Reader on one assigned project |
| Result | Read and edit Launch briefs | Read the assigned project's briefs |
Identity answers who signed in. Membership connects that person to a customer organization. An assignment names the work they may do and its scope.
In saaslayer, membership and permission assignment are separate. Keeping that distinction in your application avoids treating “has a login” or “belongs to this customer” as permission to edit all its records.
Fictional access model with separate customer memberships. This illustrates the intended boundary; it does not demonstrate session invalidation or a live system’s revocation timing.
Invite someone who already has a login
Northwind's administrator invites Maya to join Northwind. The acceptance flow needs to attach the membership to her existing verified identity and apply the intended assignments.
Creating another sign-in account for the same person would leave two identities to recover, audit and eventually remove. Test acceptance while already signed in, as well as acceptance by someone creating an identity for the first time.
Be precise about what the invitation creates. A Users account invitation starts an identity flow. Customer membership and scoped permission assignments still need their own setup.
The administrator should be able to grant only the roles and scopes your backend permits them to manage. A hidden option in the invitation screen does not enforce that boundary against a direct request.
Remove the first customer's access
When the Northwind contract ends, the desired state is:
| State | Before removal | After removal |
|---|---|---|
| Maya's identity | Active | Active |
| Northwind membership | Present | Removed |
| Northwind project assignments | Launch editor | Removed |
| Harbor membership and assignments | Present | Preserved |
| Editing a Launch brief | Allowed | Refused once removal has propagated |
| Reading the assigned Harbor brief | Allowed | Allowed |
Use an offboarding operation that reconciles Northwind's memberships and assignments. Do not assume changing either record automatically removes every other access path.
Inventory credentials too. Revoke personal keys that still reach Northwind. For an integration with its own service account, decide whether to transfer ownership, replace its credentials or retire it. Deleting a person's login is an unreliable way to manage an automation's lifecycle.
Check the existing session
A fresh login test misses a common failure: an already signed-in browser still has a session or cached permission result.
Keep Maya's existing session open during the test. After the removal completes, try the Northwind write again and verify that the brief remains unchanged. Then use that same identity to read the Harbor brief.
Also test another Northwind project she never had access to and any personal API key covered by the removal. Record when each path stops authorizing requests; propagation and credential behavior depend on the integration.
Those checks establish the boundary the product needs: Northwind can end its relationship with Maya without controlling her relationship with Harbor.