Allow support users to archive/unarchive organizations - #2389
Open
nikhilb4a wants to merge 7 commits into
Open
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
nikhilb4a
force-pushed
the
nikhil/2104-archive-organizations
branch
from
August 27, 2026 01:34
4ea1e11 to
9727d6e
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…rictions Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ganizations Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
nikhilb4a
force-pushed
the
nikhil/2104-archive-organizations
branch
from
August 27, 2026 18:36
9727d6e to
8010d43
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Closes #2104
Outdated organizations, such as the CA orgs, fill up the space on the Support Tools Org list. When support is logging in to different orgs multiples times a day, this is an unnessary slowdown. Especially given there are only ~10 active customers alongside some valid sandboxes, there is no need to have such a long list.
This PR adds the ability to archive organizations, preventing users from that org from logging in if that is there only org through
check_accesschecks. Support users can archive, view archived orgs, and unarchive orgs.The core change is adding an
archivedAtfield to an organization, along with a simple API to read/update it.Screenshot
Screen.Recording.2026-08-26.at.6.18.26.PM.mov
Screen.Recording.2026-08-26.at.6.27.48.PM.mov
Edge case - If an audit admin is logged in when an org is archived or a support user logs in as a user belonging to an archived org, they see the following. Note: Added some padding above "All Audits" post screen recording