Imagine a developer left your team three months ago. Their company account was disabled on their last day and deleted a few weeks later, so everyone assumed they were fully offboarded. Then someone notices that a scheduled script still authenticates with a personal access token they created. Their name is still listed as an Owner on an Azure subscription, as "Identity not found." An app registration they created has a client secret that runs a production integration. And everyone on the team knows the shared password for the payment dashboard.
Nobody did anything wrong. Developer access simply lives in more places than an identity system can see.
A dependable offboarding comes down to a few steps, in this order:
- Take an inventory of everywhere the person has access.
- Transfer ownership of anything that would break when they leave.
- Disable the identity and revoke active sessions.
- Remove credentials that work without single sign-on: tokens, keys, and app secrets.
- Rotate shared secrets the person knew.
- Remove role assignments, then check that nothing was missed.
Where developer access actually lives
Before changing anything, list where this person could get in. For a team on GitHub and Azure, that usually includes:
- Identity: the Microsoft Entra ID account and its group memberships, plus single sign-on into other tools.
- GitHub: organization membership, personal access tokens, SSH keys, deploy keys they added, OAuth apps they authorized, and GitHub Apps they installed.
- Azure: role assignments at management group, subscription, resource group, and resource level, including ones given directly to the person rather than through a group.
- Entra app registrations and service principals they created, and the client secrets or certificates on them.
- Key Vault: access through roles or, on older vaults, access policies.
- Azure DevOps: organization membership, personal access tokens, and service connections.
- CI and CD secrets they could read or had set.
- Shared accounts and secrets: team passwords, third-party API keys, payment and DNS registrar dashboards.
- Devices and local copies: laptops, cloned repositories, local
.envfiles.
The last item is a reminder that you can't take back what someone already copied. You can only make sure it stops working.
Order of operations
Order matters, because removing the wrong thing first can break production or leave a gap:
- Transfer ownership first. Reassign repositories, pipelines, scheduled jobs, alert routing, app registrations, and admin roles they hold, so nothing stops when their account does.
- Disable the identity and revoke sessions. This cuts off single sign-on into everything connected to Entra ID.
- Remove credentials that don't go through single sign-on. Tokens, SSH keys, deploy keys, and app secrets can keep working regardless of the account's status.
- Rotate shared secrets the person could see.
- Remove role assignments and memberships that remain.
- Verify with audit logs and a second pass over the inventory.
Disabling the account isn't instant
Microsoft's guide to revoking user access in Microsoft Entra ID recommends disabling the account, revoking the user's sessions, and disabling their devices. It also explains why that isn't the end of it. Access tokens remain valid until they expire, one hour by default, and applications that issue their own session tokens may keep a user signed in without checking back with Entra.
Other delays to plan around:
- Azure role changes can take up to 10 minutes to take effect, according to Azure's RBAC troubleshooting guide.
- Azure DevOps personal access tokens are revoked when the user's account is disabled, but the documentation notes this can take up to an hour.
For a planned departure, these windows are usually fine. For an urgent removal, assume the person keeps some access for up to an hour and act on the highest-risk credentials directly.
GitHub
Remove the member, then deal with what outlives membership. Removing someone from the organization, per GitHub's documentation, means they lose access to their private forks of organization repositories; if they're re-invited within three months, those forks can be restored.
Personal access tokens depend on the type. For fine-grained tokens, GitHub's guide to reviewing and revoking tokens says organization owners can view every fine-grained token that can access organization resources and revoke that access. Classic tokens don't appear there. Organizations can restrict classic tokens from accessing their resources, which is worth doing before anyone leaves.
With SAML single sign-on, revoke authorizations. On GitHub Enterprise Cloud with SAML, owners can view and manage a member's SAML access, including their sessions and the tokens and SSH keys they've authorized. GitHub's incident guidance notes that revoking an authorization removes the SAML authorization only; it doesn't delete the token or key itself.
Deploy keys stay behind. GitHub's deploy key documentation explains that a deploy key is tied to the repository, not to the person who added it, so it keeps working after they leave. If they created deploy keys, or could have copied one, replace them.
Apps behave differently. Per GitHub's comparison of GitHub Apps and OAuth apps, an OAuth app acting for a user loses access when that user does, while a GitHub App installed on the organization keeps working. That's usually what you want for automation, but check what the departing person installed and who manages it now.
Check the audit log. The organization audit log can be filtered by actor, which helps confirm what they did recently and that nothing happened after removal.
Azure and Microsoft Entra ID
Find direct role assignments. Group-based access disappears with group membership, but roles assigned directly to the person don't. Azure's guide to listing role assignments with the CLI uses az role assignment list --assignee, which by default looks only at the current subscription. Add flags to include inherited and group assignments and to cover the subscription and everything below it, and check other subscriptions and management groups separately.
Deleted users become "Identity not found." Azure's RBAC troubleshooting guide explains that when a user is deleted, their role assignments show the principal as "Identity not found," and it recommends removing role assignments that aren't being used. Remove the person's assignments before you delete the account, while it's still easy to see whose they are.
Watch for the last Owner. If the person is the only Owner of a subscription, assign another Owner first. Azure prevents removing the last Owner in many cases, and you don't want to discover that during an urgent removal.
App registrations they created. In Entra ID, whoever registers an application becomes its owner, per Microsoft's guidance on application owners, which also recommends at least two owners. Microsoft Graph can list the objects a user owns. For each app:
- Add a new owner.
- Treat any client secret or certificate the person could have copied as known to them, and replace it with a new credential.
- Remove the old credential once the new one is in use.
Key Vault access policies. Newer vaults use Azure RBAC by default, but older vaults may use access policies. Microsoft's comparison of RBAC and access policies points out that, under the access policy model, users with Contributor rights can grant themselves data access, and those policies don't show up in role-assignment listings. Check each vault's access policies explicitly.
Azure DevOps
- Personal access tokens: disabling the account revokes them, with the delay mentioned above. Admins can also revoke users' tokens directly when they need to act faster.
- Group-based access: Microsoft's guide to removing users notes that removing someone from the organization doesn't remove access granted through Entra groups, so update the groups too.
- Organization ownership: if they own the organization, change the owner. The old owner isn't automatically removed from Project Collection Administrators.
- Service connections: review service connections they created, especially ones using secrets rather than workload identity federation, and rotate those credentials.
Shared secrets they knew
Some access can't be revoked per person, because it was never per person: a shared admin password, a payment provider API key in a CI variable, a DNS registrar login. If the departing developer could see it, assume they still know it.
Stripe's API key documentation says it plainly: rotate keys when team members with access to them leave your organization. The same reasoning applies to other shared credentials.
Rotate in order of risk:
- Production database passwords, payment and banking keys, and cloud admin credentials first.
- Then third-party API keys with write access and webhook signing secrets.
- Then lower-risk read-only keys.
Rotate without downtime by overlapping old and new credentials, and use the departure as a reason to replace shared accounts with individual access or managed identities where you can.
Disable first, delete later
It's tempting to delete the account immediately. Disabling is usually better at first. The CIS Controls' safeguard on revoking access calls for disabling accounts immediately upon termination, and notes that disabling instead of deleting may be needed to preserve audit trails. A disabled account still shows a name in logs and ownership records, which makes cleanup and investigation easier. Delete it later, after ownership has moved and role assignments are gone.
Check that nothing was missed
A day or two later, verify:
- Sign-in logs show no successful sign-ins after the disable time.
- The GitHub audit log shows no activity by the person after removal.
- The inventory shows no remaining role assignments, app ownership, tokens, or keys.
- Integrations that used their credentials have moved to new ones and are still working.
Make it routine
Offboarding goes better when access is already tidy:
- Grant access through groups, not directly to people, so removal is one step.
- Restrict classic GitHub tokens and prefer fine-grained, expiring ones.
- Give apps at least two owners and record who is responsible for each.
- Review access on a schedule. Microsoft's access reviews and Privileged Identity Management automate this but require paid licenses. A small team can get most of the benefit from a quarterly review of the inventory above.
- Keep the checklist with the inventory, and update it when you add a new tool.
Standards point the same way. The CIS Controls include a safeguard for dormant accounts alongside the access-revocation safeguard. NIST's security controls include a personnel termination control, PS-4, that covers disabling access and retrieving credentials. In the EU, the NIS2 Directive's risk-management measures include human resources security and access control policies, and GDPR Article 32 asks for measures that protect the confidentiality of processing systems. Whether these apply to your organization depends on your sector and size, but a documented offboarding process supports all of them.
Offboarding checklist
- Inventory access across identity, GitHub, Azure, Azure DevOps, CI, Key Vault, and shared accounts.
- Transfer ownership of repos, pipelines, schedules, app registrations, and admin roles.
- Disable the account and revoke sessions; expect up to an hour for tokens to expire.
- Revoke GitHub fine-grained tokens and SAML authorizations; restrict classic tokens.
- Replace deploy keys they added or could have copied.
- Remove direct Azure role assignments before deleting the account.
- Rotate secrets on app registrations they owned.
- Check Key Vault access policies on older vaults.
- Revoke Azure DevOps tokens if you need it faster, and update Entra groups.
- Rotate shared secrets they knew, highest risk first.
- Disable first, delete later.
- Verify with sign-in logs, audit logs, and a second inventory pass.
- Review access regularly so the next offboarding is shorter.



