- Zen IT Technologies
- Technical notes
- Deactivation is the last switch
Deactivation is the last switch
Jonny Flaks, Founder & Principal Architect
Technical note in Identity & Access Management
A clean SCIM test usually starts with a person who has never used the application. Create the user, sign in, remove the assignment, watch the account close. The integration passes. The people who have worked in the application for three years are still an open question.
Start with the account that has history
Export the application's users and compare them with the people you intend to assign. Okta checks for an existing username before it creates a SCIM user. If the application still knows someone by an old email address, the new assignment can produce a second account. Their documents, permissions and active sessions may all belong to the first one.
Choose a pilot user with existing work in the application. Record the application's user ID before assignment. Afterwards, confirm the same ID owns the same work and has the intended role. Seeing the right name on the Okta dashboard proves very little about which record was linked.
| Identity provider | Existing app record | Rollout decision |
|---|---|---|
| Matching username | Same person and ID | Pilot and verify link |
| Current email | Same person, old email | Resolve the identifier |
| No assigned user | Integration account | Confirm owner and lifecycle |
Test both directions with a small blast radius
Include a new user, an existing user and an approved disposable identity. Test creation and an ordinary profile update. Check the downstream role as well. An incorrect attribute mapping can grant access just as efficiently as a correct one.
Use the disposable identity to test removal in an isolated integration or test tenant if deactivation is a global switch. Okta's SCIM deactivation sets the user's active state to false. The application decides what happens to content, licenses and sessions. Try an existing session as well as a fresh login, and record what reactivation restores.
Before enabling deactivation in production, account for the unmatched rows. Give service accounts an owner. Resolve aliases. Keep a manual leaver check running during the rollout. Once deactivation is live, the people who can edit an assignment group or its membership rule can affect everyone it covers.
Read what deactivation does in this application
The identity provider sends a deactivation. The application decides what that means, and applications disagree. Some block sign-in and keep everything. Some release the license straight away, which is fine until a returning contractor finds their seat has gone to someone else. Some transfer the person's content to an administrator. A few treat deprovisioning as deletion, data included.
Find the behavior in the vendor's provisioning documentation, then confirm it with the disposable identity. Write the answer down next to the integration, wherever your team keeps its application records. Whoever revisits the integration in a year should not have to rediscover it.
The assignment group becomes the off switch
With deactivation live, the group that grants the application is also the mechanism that removes it. Someone tidying application assignments removes a group that looks redundant, and everyone in it is deprovisioned. A membership rule built on an HR attribute can do the same thing more quietly: rename a department in the HR system and the rule stops matching a whole team, without anyone in IT touching anything.
Treat changes to assignment groups and their rules as access changes. Restrict who can make them, and review them the way you would review a role change inside the application. The provisioning side of this is in "Single sign-on is the easy half".
The identifier will change again
Matching existing accounts is a rollout problem. Identifier changes keep coming afterwards. People change their names, companies change their email domain, and contractors become employees with a new address. Each of those sends an update about a person the application already knows.
What happens next depends on the attribute the application uses as its key. Some applications accept the new username on the existing account. Others reject the update, or end up with a second account the next time the person is assigned. Rename the disposable identity once before go-live and watch which of those you get. For the first few months, add identifier changes to the HR events someone checks by hand.
Let the first real leaver prove it
The disposable identity proves the mechanism. The first real departure after go-live proves the process. Follow it all the way through: the identity provider's log, the account state in the application, any session that was still open, who now owns the person's content, and whether the license came back.
Stop the manual leaver check once a real departure matches what your test predicted, and not before.
The check worth running
Pick someone whose account predates SCIM. Start with their record in the application and work backwards to the identity and group that manage it. That is the account your offboarding process needs to close.
Product note. Product features change frequently, so always check current features and documentation before acting on this note. It is a starting point rather than a configuration reference.
Explore this expertise: Identity & Access Management