Account deprovisioning: verify access removal after departure or contract end
Disabling a central login does not necessarily revoke app sessions, tokens, API keys, or shared access. Use a target-by-target termination workflow and verify the resulting state.
Account deprovisioning: verify access removal after departure or contract end
Deprovisioning securely suspends or removes service accounts, groups, sessions, and credentials when a person or account no longer needs access. Changing someone to “departed” in an HR system does not prove that access to every connected app has ended. Closure is complete only after each target service is checked to confirm that it denies access.
Why disabling an account is not enough
Access can remain at several layers. Blocking an Identity Provider (IdP) account can stop new federated sign-ins, while an app session already issued may remain valid. Disabling an app account may leave personal API keys, tokens, shared links, or administrator rights through another account. Define removal to include existing sessions and resource permissions, not just login.
| Access layer | What to check at closure | Example evidence |
|---|---|---|
| Central identity account | State change and denial of new sign-ins | The IdP rejects that account's login |
| Target app account and groups | Local account, role, team and group memberships | The app reports the account disabled or deleted |
| Existing sessions and tokens | Revoke sessions, refresh tokens and API keys; sign out | A prior browser session or credential no longer works |
| Data and ownership | Transfer files, automations and shared resources; apply retention rules | An approved successor owns the material and the former user cannot access it |
The goal is not always permanent deletion. Audit, legal retention, or business continuity may require keeping account records or data while separately blocking the person's login. Also check what SCIM DELETE means in the target: RFC 7644 allows a provider to retain a deleted resource, but it must omit it from later queries and treat subsequent operations on it as not found.
From a termination event to verified closure
Trust the event. Identify authoritative sources and responsible people for departure, contract end, account compromise, or extended leave. Correlate system-generated changes so they are not mistaken for a new source event.
Block sign-in first. At departure or during an incident, suspend the IdP account and authenticators to prevent new sessions. For urgent risk, define an emergency block outside the normal synchronization queue.
Remove target access. Revoke accounts, groups, administrator roles, and temporary access in connected SaaS, cloud, VPN, source repositories, and consoles. Do not omit disconnected accounts or exception systems just because SCIM automation exists.
Invalidate sessions and secrets. Use each product's supported methods for active-session termination, refresh-token cancellation, app passwords, and personal API keys. Do not assume blocking central login automatically revokes credentials already issued.
Handle data and ownership. Transfer material to an approved owner and apply retention or deletion rules. Preserve data without restoring the former user's login access.
Reconcile and record completion. Compare the termination list with actual target states. Record failed targets, remaining sessions, manual actions, and retention exceptions with an owner and due date.
Safe exceptions and recovery
If an automated revocation request fails, inspect the current target state before retrying against the same approved status. Do not repeatedly call account deletion blindly or mark every error as success. A request may have applied after a network timeout: look up the target resource ID and state to avoid duplicate work. If the wrong account was locked, restore the source state and group mapping through the approved recovery path, then separately decide whether old sessions or keys should be allowed again.
For example, when a contractor's agreement ends, record the end time and owner in the source system and verify that each service role was removed. Project documents may transfer to a successor, but retaining the former contractor's sign-in account or personal tokens requires separate approval. Set target times based on risk and operational needs, and define evidence of success for each system.
NIST SP 800-53 AC-2 covers account-management controls such as creating, modifying, disabling and removing accounts and notifying account managers of termination or transfer. RFC 7644 describes SCIM resource deletion. These are reference guidance; actual retention and access-blocking periods depend on contracts, jurisdictional requirements, and product capabilities.
Sources
[NIST SP 800-53 Rev. 5: Account Management controls](https://csrc.nist.gov/projects/risk-management/sp800-53-controls/downloads)
[RFC 7644: SCIM Protocol Specification, Deleting Resources](https://www.rfc-editor.org/rfc/rfc7644.html)