You can use the site admin dashboard to restore an organization that was previously deleted on your GitHub Enterprise Server instance, as long as the audit log Elasticsearch indices contain the data for the
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."
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."
从 GitHub Enterprise Server 上的管理帐户任意页面的右上角，单击 。
Under "Search users, organizations, enterprises, teams, repositories, gists, and applications", search for the organization.
Under "Deleted accounts", to the right of the organization you want to restore, select the dropdown menu, then click Recreate.
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."
In all the search phrases below, replace ORGANIZATION with the name of the organization and TEAM with the name of the team.
- To find all users who were added to and removed from the organization, search the audit log for
- Manually add to the organization each user that should still be a member. For more information, see "Adding people to your organization."
- To find each team name, search the audit log for
- Manually recreate the team. For more information, see "Creating a team."
- To find the members that have been added to each team, search for
- Manually re-add the team members. For more information, see "Adding organization members to a team."
- To find the repositories that the team was granted access to, search for
- To find the access level that the team was granted for each repository, search for
- Manually give the team access again. For more information, see "Managing team access to an organization repository."