Article version: Enterprise Server 2.13

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-03-27. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Reviewing the audit log for your organization

The audit log allows organization admins to quickly review the actions performed by members of your organization. It includes details such as who performed the action, what the action was, and when it was performed.

In this article

Accessing the audit log

The audit log lists actions performed within the last 90 days. Only owners can access an organization's audit log.

  1. In the top right corner of GitHub Enterprise, click your profile photo, then click Your profile.

    Profile photo

  2. On the left side of your profile page, under "Organizations", click the icon for your organization.

    organization icons

  3. Under your organization name, click Settings.

    Organization settings button

  4. In the Settings sidebar, click Audit log.

    Org audit log settings in sidebar

Searching the audit log

The audit log lists the following information about actions made within your organization:

Note that you cannot search for audit entries using text. You can, however, construct search queries using a variety of filters. Many operators used when querying the audit log—such as -, >, or < —match the same format as searching across GitHub Enterprise.

Search based on repository

Use the repo qualifier to limit actions to a specific repository owned by your organization. For example:

Note that you must include your organization's name within the repo qualifier; searching for just repo:our-repo will not work.

Search based on the user

The actor qualifier can scope events based on the member of your organization that performed the action. For example:

Note that you can only use a GitHub Enterprise username, not an individual's real name.

Search based on the action performed

To search for specific events, use the action qualifier in your query. Actions listed in the audit log are grouped within the following categories:

Category Name Description
discussion_post Contains all activities related to discussions posted to a team page.
discussion_post_reply Contains all activities related to replies to discussions posted to a team page.
hook Contains all activities related to webhooks.
org Contains all activities related organization membership
profile_picture Contains all activities related to your organization's profile picture.
project Contains all activities related to project boards.
protected_branch Contains all activities related to protected branches.
repo Contains all activities related to the repositories owned by your organization.
team Contains all activities related to teams in your organization.
team_discussions Contains activities related to managing team discussions for an organization.

You can search for specific sets of actions using these terms. For example:

Each category has a set of associated events that you can filter on. For example:

This list describes the available categories and associated events:

The discussion_post category
Action Description
update Triggered when a team discussion post is edited.
destroy Triggered when a team discussion post is deleted.
The discussion_post_reply category
Action Description
update Triggered when a reply to a team discussion post is edited.
destroy Triggered when a reply to a team discussion post is deleted.
The hook category
Action Description
create Triggered when a new hook was added to a repository owned by your organization.
config_changed Triggered when an existing hook has its configuration altered.
destroy Triggered when an existing hook was removed from a repository.
events_changed Triggered when the events on a hook have been altered.
The org category
Action Description
disable_two_factor_requirement Triggered when an owner disables a two-factor authentication requirement for all members and outside collaborators in an organization.
enable_two_factor_requirement Triggered when an owner requires two-factor authentication for all members and outside collaborators in an organization.
invite_member Triggered when a new user was invited to join your organization.
remove_member Triggered when an owner removes a member from an organization or when two-factor authentication is required in an organization and an organization member doesn't use 2FA or disables 2FA. Also triggered when an organization member removes themselves from an organization.
remove_outside_collaborator Triggered when an owner removes an outside collaborator from an organization or when two-factor authentication is required in an organization and an outside collaborator does not use 2FA or disables 2FA.
update_default_repository_permission Triggered when an owner changes the default repository permission level for organization members.
update_member Triggered when an owner changes a person's role from owner to member or member to owner.
update_member_repository_creation_permission Triggered when an owner changes the create repository permission for organization members.
The oauth_application category
Action Description
create Triggered when a new OAuth App is created.
destroy Triggered when an existing OAuth App is deleted.
reset_secret Triggered when an OAuth App's client secret is reset.
revoke_tokens Triggered when an OAuth App's user tokens are revoked.
transfer Triggered when an existing OAuth App is transferred to a new organization.
The profile_picture category
Action Description
update Triggered when you set or update your organization's profile picture.
The project category
Action Description
create Triggered when a project board is created.
rename Triggered when a project board is renamed.
update Triggered when a project board is updated.
delete Triggered when a project board is deleted.
The protected_branch category
Action Description
create Triggered when branch protection is enabled on a branch.
destroy Triggered when branch protection is disabled on a branch.
update_admin_enforced Triggered when branch protection is enforced for repository administrators.
update_require_code_owner_review Triggered when enforcement of required Code Owner review is updated on a branch.
dismiss_stale_reviews Triggered when enforcement of dismissing stale pull requests is updated on a branch.
update_signature_requirement_enforcement_level Triggered when enforcement of required commit signing is updated on a branch.
update_pull_request_reviews_enforcement_level Triggered when enforcement of required pull request reviews is updated on a branch.
update_required_status_checks_enforcement_level Triggered when enforcement of required status checks is updated on a branch.
rejected_ref_update Triggered when a branch update attempt is rejected.
policy_override Triggered when a branch protection requirement is overridden by a repository administrator.
The repo category
Action Description
access Triggered when a repository owned by an organization is switched from "private" to "public" (or vice versa).
add_member Triggered when a user accepts an invitation to have collaboration access to a repository.
add_topic Triggered when a repository admin adds a topic to a repository.
archived Triggered when a repository admin archives a repository.
create Triggered when a new repository is created.
destroy Triggered when a repository is deleted.
enable Triggered when a repository is reenabled.
remove_member Triggered when a user is removed from a repository as a collaborator.
remove_topic Triggered when a repository admin removes a topic from a repository.
rename Triggered when a repository is renamed.
transfer Triggered when a repository is transferred.
transfer_start Triggered when a repository transfer is about to occur.
unarchived Triggered when a repository admin unarchives a repository.
The team category
Action Description
add_member Triggered when a member of an organization is added to a team.
add_repository Triggered when a team is given control of a repository.
change_parent_team Triggered when a child team is created or a child team's parent is changed.
change_privacy Triggered when a team's privacy level is changed.
create Triggered when a new team is created.
destroy Triggered when a team is deleted from the organization.
remove_member Triggered when a member of an organization is removed from a team.
remove_repository Triggered when a repository is no longer under a team's control.
The team_discussions category
Action Description
disable Triggered when an organization owner disables team discussions for an organization. For more information, see "Disabling team discussions for your organization."
enable Triggered when an organization owner enables team discussions for an organization.

Search based on time of action

Use the created qualifier to filter actions in the audit log based on when they occurred. Date formatting must follow the ISO8601 standard, which is YYYY-MM-DD (year-month-day). You can also add optional time information THH:MM:SS+00:00 after the date, to search by the hour, minute, and second. That's T, followed by HH:MM:SS (hour-minutes-seconds), and a UTC offset (+00:00).

Dates support greater than, less than, and range qualifiers. For example:

The audit log contains data for the past 90 days, but you can use the created qualifier to search for events earlier than that.

Search based on location

Using the qualifier country, you can filter actions in the audit log based on the originating country. You can use a country's two-letter short code or its full name. Keep in mind that countries with spaces in their name will need to be wrapped in quotation marks. For example:

Further reading

Ask a human

Can't find what you're looking for?

Contact us