Agent Wranglers

ACC-46Recommended

Remove access when someone leaves

When a member leaves or is removed, end their access to that organisation and keep the work they made there. Do it within the limit in end sessions when access changes.

How to do it

Delete the membership and revoke their API keys, app grants and shared links for that organisation. Leave their other organisations alone. Keep their records, shown under their name as a former member. Hand records that need an owner, such as scheduled reports, to someone the admin picks. Let any member leave on their own, unless they are the last owner. For staff, remove access within a day of leaving.

How to check

Remove a signed-in test member. Within 60 seconds, their next request to the organisation answers 403 or 404, their API key gets 401, and their documents are still there.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/accounts/organisations-and-teams/member-removal">Agent Wranglers accounts and identity playbook</a>. In code you write, add a comment next to it with the same link.