Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#185696848] Introduce script for decommissioning an organisation #3333

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

AP-Hunt
Copy link
Member

@AP-Hunt AP-Hunt commented Jul 28, 2023

What

Finally decommissioning an org means removing all of the users from it. Doing so can be a tedious affair, so this script makes that easier.

./scripts/decommission_organisation.rb --org SOME_ORG

How to review

Create an organisation in a dev env, invite a user, and then use the script


🚨⚠️ Please do not merge this pull request via the GitHub UI ⚠️🚨

@AP-Hunt AP-Hunt force-pushed the org_cleanout_tool_185696848 branch 2 times, most recently from 808b9bc to aa56af3 Compare July 28, 2023 15:30
Finally decommissioning an org means removing all of the users from it. Doing
so can be a tedious affair, so this script makes that easier.

```
./scripts/decommission_organisation.rb --org SOME_ORG
```
@AP-Hunt AP-Hunt force-pushed the org_cleanout_tool_185696848 branch from aa56af3 to d57a760 Compare July 31, 2023 12:12
@malcgds
Copy link
Contributor

malcgds commented Aug 7, 2023

I created an org, a space and three users. I ran the script and the script flagged that the org was not suspended and that it had an existing space. I suspended the org and re-ran the script. The script flagged that the org had an existing space. I deleted the space, re-ran the script and then the script removed the users.

LGTM.

@malcgds malcgds closed this Aug 7, 2023
@malcgds malcgds merged commit 67a942c into main Aug 7, 2023
8 checks passed
@malcgds malcgds deleted the org_cleanout_tool_185696848 branch August 7, 2023 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants