Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
50c0b2d
Removed duplicate actions reusable folder
sophietheking Feb 25, 2022
c9258a8
Merge branch 'main' into sophie-5758
sophietheking Feb 25, 2022
91f9349
Restoring a deleted organization on GHES (#25663)
lecoursen Feb 28, 2022
4707cd9
Merge branch 'main' into repo-sync
Octomerger Feb 28, 2022
7f898c3
Merge pull request #25709 from github/repo-sync
Octomerger Feb 28, 2022
9c8ab14
Set meta description on homepage (#25546)
rsese Feb 28, 2022
2ade7d8
reactify rest pages (#25005)
rachmari Feb 28, 2022
a297f2c
New translation batch for es (#25712)
docubot Feb 28, 2022
eef7705
throw if no value not found in indented_data_reference (#25711)
peterbe Feb 28, 2022
59388cb
Add About commit branches and tag labels
sophietheking Feb 24, 2022
e91372b
Adding screenshots
sophietheking Feb 24, 2022
9f2dda4
Add screenshot and clarify steps
sophietheking Feb 24, 2022
2707805
Optimize images
invalid-email-address Feb 25, 2022
675092a
Added link to information on tagging
sophietheking Feb 28, 2022
9dc1088
Adding steps to procedural section
sophietheking Feb 28, 2022
547a12c
Added a screenshot and a reusable
sophietheking Feb 28, 2022
409e7f8
Optimize images
invalid-email-address Feb 28, 2022
46a5416
Deleted Commit branch and tag labels page
sophietheking Feb 28, 2022
aa9ee8b
Removed reference to delete page
sophietheking Feb 28, 2022
bb1800a
Update content model to use `people` instead of `customers` (#25714)
ethanpalm Feb 28, 2022
bada144
lower rate limit in production much higher in dev and test (#25688)
peterbe Feb 28, 2022
ec09e7b
New translation batch for pt (#25708)
docubot Feb 28, 2022
dde4ae9
don't bother caching the lib/redirects/.redirects-cache_en_ja.json in…
peterbe Feb 28, 2022
a0844f6
New translation batch for cn (#25713)
docubot Feb 28, 2022
999e95e
New translation batch for ja (#25715)
docubot Feb 28, 2022
eee9933
Replace indented reusables
sophietheking Mar 1, 2022
1c75866
Merge branch 'main' into sophie-5758
sophietheking Mar 1, 2022
ccf02c1
Merge pull request #25657 from github/sophie-5758
sophietheking Mar 1, 2022
3ade48f
Update supported GitHub runners (#24186)
Steve-Glass Mar 1, 2022
6254af4
Merge branch 'main' into repo-sync
Octomerger Mar 1, 2022
80ace67
Merge pull request #25718 from github/repo-sync
Octomerger Mar 1, 2022
d11f852
CodeQL: Update SARIF uploading example (#25702)
RasmusWL Mar 1, 2022
9dff6e5
Update content/pull-requests/committing-changes-to-your-project/creat…
sophietheking Mar 1, 2022
88d5002
Merge branch 'main' into sophie-5306
sophietheking Mar 1, 2022
e81b8b3
Merge pull request #25603 from github/sophie-5306
sophietheking Mar 1, 2022
e69144b
temporarily re-introduct includes/rest_operations_at_current_path.htm…
peterbe Mar 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content/admin/guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,6 @@ includeGuides:
- /admin/user-management/requiring-two-factor-authentication-for-an-organization
- /admin/user-management/suspending-and-unsuspending-users
- /admin/overview/creating-an-enterprise-account
- /admin/user-management/managing-organizations-in-your-enterprise/restoring-a-deleted-organization
---

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ children:
- /streaming-the-audit-logs-for-organizations-in-your-enterprise-account
- /removing-users-from-teams-and-organizations
- /removing-organizations-from-your-enterprise
- /restoring-a-deleted-organization
- /managing-projects-using-jira
- /continuous-integration-using-jenkins
shortTitle: Manage organizations
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: Restoring a deleted organization
intro: "You can partially restore an organization that was previously deleted on {% data variables.product.product_location %}."
versions:
ghes: '*'
type: how_to
topics:
- Administrator
- Enterprise
- Organizations
shortTitle: Restore organization
permissions: Site administers can restore an organization on {% data variables.product.product_name %}.
---

## About organization restoration

You can use the site admin dashboard to restore an organization that was previously deleted on {% data variables.product.product_location %}, as long as the audit log Elasticsearch indices contain the data for the `org.delete` event.

Immediately after you restore an organization, the organization will not be exactly the same as it was prior to the deletion. You'll have to manually restore any repositories that were owned by the organization. For more information, see "[Restoring a deleted repository](/admin/user-management/managing-repositories-in-your-enterprise/restoring-a-deleted-repository)."

You can also use the audit log to help you manually re-add teams and organization members. For more information, see "[Restoring members and teams](#restoring-members-and-teams)."

## Restoring an organization

{% data reusables.enterprise_site_admin_settings.access-settings %}
1. Under "Search users, organizations, enterprises, teams, repositories, gists, and applications", search for the organization.

![Screenshot of the search field and Search button](/assets/images/enterprise/stafftools/search-field.png)

1. Under "Deleted accounts", to the right of the organization you want to restore, select the {% octicon "kebab-horizontal" aria-label="The edit icon" %} dropdown menu, then click **Recreate**.

![Screenshot of the dropdown menu for a deleted organization](/assets/images/enterprise/stafftools/recreate-organization.png)

## Restoring members and teams

You can use the audit log to find a list of the previous members and teams of the organization, then recreate them manually. For more information about using the audit log, see "[Auditing users across your enterprise](/admin/user-management/managing-users-in-your-enterprise/auditing-users-across-your-enterprise)."

In all the search phrases below, replace ORGANIZATION with the name of the organization and TEAM with the name of the team.

### Restoring organization members

1. To find all users who were added to and removed from the organization, search the audit log for `action:org.add_member org:ORGANIZATION` and `action:org.remove_member org:ORGANIZATION`.
1. Manually add to the organization each user that should still be a member. For more information, see "[Adding people to your organization](/organizations/managing-membership-in-your-organization/adding-people-to-your-organization)."

### Restoring teams

1. To find each team name, search the audit log for `action:team.create org:ORGANIZATION`.
1. Manually recreate the team. For more information, see "[Creating a team](/organizations/organizing-members-into-teams/creating-a-team)."
1. To find the members that have been added to each team, search for `action:team.add_member team:"ORGANIZATION/TEAM"`.
1. Manually re-add the team members. For more information, see "[Adding organization members to a team](/organizations/organizing-members-into-teams/adding-organization-members-to-a-team)."
1. To find the repositories that the team was granted access to, search for `action:team.add_repository team:"ORGANIZATION/TEAM"`.
1. To find the access level that the team was granted for each repository, search for `action:team.update_repository_permission team:"ORGANIZATION/TEAM"`.
1. Manually give the team access again. For more information, see "[Managing team access to an organization repository](/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository)."
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ versions:
topics:
- Organizations
- Teams
shortTitle: Delete organization account
shortTitle: Delete organization
---

{% ifversion fpt or ghec %}
Expand All @@ -26,7 +26,15 @@ shortTitle: Delete organization account

## 1. Back up your organization content

Once you delete an organization, GitHub **cannot restore your content**. Therefore, before you delete your organization, make sure you have a copy of all repositories, wikis, issues, and project boards from the account.
{% ifversion not ghes %} After you delete an organization, {% data variables.product.company_short %} **cannot restore your content**. Therefore, before{% else %}Before{% endif %} you delete your organization, make sure you have a copy of all repositories, wikis, issues, and project boards from the account.

{% ifversion ghes %}
{% note %}

**Note:** If necessary, a site administrator for {% data variables.product.product_location %} may be able to partially restore a deleted organization. For more information, see "[Restoring a deleted organization](/admin/user-management/managing-organizations-in-your-enterprise/restoring-a-deleted-organization)."

{% endnote %}
{% endif %}

## 2. Delete the organization

Expand Down