User

actionDescriptionSampleRule
user.add_emailAn email address was added to a user account.NN
user.async_deleteAn asynchronous job was started to destroy a user account, eventually triggering a user.delete event.NN
user.audit_log_exportAudit log entries were exported.NN
user.block_userA user was blocked by another user.NN
user.change_passwordA user changed their password.NN
user.codespaces_trusted_repo_access_grantedTriggered when you allow the codespaces you create for a repository to access other repositories owned by your personal account.NN
user.codespaces_trusted_repo_access_revokedTriggered when you disallow the codespaces you create for a repository to access other repositories owned by your personal account.NN
user.createA new user account was created.NN
user.create_integration_secretA user secret for Codespaces was created.NN
user.creation_rate_limit_exceededThe rate of creation of user accounts, applications, issues, pull requests or other resources exceeded the configured rate limits, or too many users were followed too quickly.NN
user.deleteA user account was destroyed by an asynchronous job.NN
user.demoteA site administrator was demoted to an ordinary user account.NN
user.destroyA user deleted his or her account, triggering user.async_delete.NN
user.device_verification_failureNN
user.device_verification_requestedNN
user.device_verification_successNN
user.disable_collaborators_onlyNN
user.disable_contributors_onlyNN
user.disable_sockpuppet_disallowedNN
user.enable_collaborators_onlyNN
user.enable_contributors_onlyNN
user.enable_sockpuppet_disallowedNN
user.failed_loginA user tried to sign in with an incorrect username, password, or two-factor authentication code.NN
user.forgot_passwordA user requested a password reset.NN
user.grant_github_developerNN
user.hide_private_contributions_countA user changed the visibility of their private contributions. The number of contributions to private repositories on the user's profile are now hidden.YN
user.loginA user signed in.YN
user.logoutA user signed out.NN
user.new_device_usedA user signed in from a new device.YN
user.promoteAn ordinary user account was promoted to a site administrator.NN
user.recreateA user's account was restored.NN
user.remove_emailAn email address was removed from a user account.NN
user.remove_integration_secretA user secret for Codespaces was deleted.NN
user.renameA username was changed.NN
user.reset_passwordA user reset their account password.NN
user.show_private_contributions_countA user changed the visibility of their private contributions. The number of contributions to private repositories on the user's profile are now shown.YN
user.sign_in_from_unrecognized_deviceA user signed in from an unrecognized device.YN
user.sign_in_from_unrecognized_device_and_locationA user signed in from an unrecognized device and location.NN
user.suspendA user account was suspended.NN
user.toggle_warn_private_emailNN
user.two_factor_challenge_failureA 2FA challenge issued for a user account failed.NN
user.two_factor_challenge_successA 2FA challenge issued for a user account succeeded.YN
user.two_factor_recoverA user used their 2FA recovery codes.NN
user.two_factor_recovery_codes_downloadedA user downloaded 2FA recovery codes for their account.NN
user.two_factor_recovery_codes_printedA user printed 2FA recovery codes for their account.NN
user.two_factor_recovery_codes_viewedA user viewed 2FA recovery codes for their account.NN
user.two_factor_requestedA user was prompted for a two-factor authentication code.YN
user.unblock_userA user was unblocked by another user.NN
user.unsuspendA user account was unsuspended.NN
user.update_integration_secretA user secret for Codespaces was updated.NN
user.update_new_repository_default_branch_settingNN

user.add_email

#
Category
user

Description

An email address was added to a user account.

Documented on GitHub's user audit log reference.

user.async_delete

#
Category
user

Description

An asynchronous job was started to destroy a user account, eventually triggering a user.delete event.

Documented on GitHub's user audit log reference.

user.audit_log_export

#
Category
user

Description

Audit log entries were exported.

Documented on GitHub's user audit log reference.

user.block_user

#
Category
user

Description

A user was blocked by another user.

Documented on GitHub's user audit log reference.

user.change_password

#
Category
user

Description

A user changed their password.

Documented on GitHub's user audit log reference.

user.codespaces_trusted_repo_access_granted

#
Category
user

Description

Triggered when you allow the codespaces you create for a repository to access other repositories owned by your personal account.

Documented on GitHub's user audit log reference.

user.codespaces_trusted_repo_access_revoked

#
Category
user

Description

Triggered when you disallow the codespaces you create for a repository to access other repositories owned by your personal account.

Documented on GitHub's user audit log reference.

user.create

#
Category
user

Description

A new user account was created.

Documented on GitHub's user audit log reference.

user.create_integration_secret

#
Category
user

Description

A user secret for Codespaces was created.

Documented on GitHub's user audit log reference.

user.creation_rate_limit_exceeded

#
Category
user

Description

The rate of creation of user accounts, applications, issues, pull requests or other resources exceeded the configured rate limits, or too many users were followed too quickly.

Documented on GitHub's user audit log reference.

user.delete

#
Category
user

Description

A user account was destroyed by an asynchronous job.

Documented on GitHub's user audit log reference.

user.demote

#
Category
user

Description

A site administrator was demoted to an ordinary user account.

Documented on GitHub's user audit log reference.

user.destroy

#
Category
user

Description

A user deleted his or her account, triggering user.async_delete.

Documented on GitHub's user audit log reference.

user.device_verification_failure

#
Category
user

Documented on GitHub's user audit log reference.

user.device_verification_requested

#
Category
user

Documented on GitHub's user audit log reference.

user.device_verification_success

#
Category
user

Documented on GitHub's user audit log reference.

user.disable_collaborators_only

#
Category
user

Documented on GitHub's user audit log reference.

user.disable_contributors_only

#
Category
user

Documented on GitHub's user audit log reference.

user.disable_sockpuppet_disallowed

#
Category
user

Documented on GitHub's user audit log reference.

user.enable_collaborators_only

#
Category
user

Documented on GitHub's user audit log reference.

user.enable_contributors_only

#
Category
user

Documented on GitHub's user audit log reference.

user.enable_sockpuppet_disallowed

#
Category
user

Documented on GitHub's user audit log reference.

user.failed_login

#
Category
user

Description

A user tried to sign in with an incorrect username, password, or two-factor authentication code.

Documented on GitHub's user audit log reference.

user.forgot_password

#
Category
user

Description

A user requested a password reset.

Documented on GitHub's user audit log reference.

user.grant_github_developer

#
Category
user

Documented on GitHub's user audit log reference.

user.hide_private_contributions_count

#
Category
user

Description

A user changed the visibility of their private contributions. The number of contributions to private repositories on the user's profile are now hidden.

Documented on GitHub's user audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1771366233250,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDA1Mg==",
  "action": "user.hide_private_contributions_count",
  "actor": "user",
  "actor_id": 9000002,
  "created_at": 1771366233250,
  "operation_type": "modify",
  "request_access_security_header": null,
  "request_id": "C3E5:301921:81F488:AE7518:6994E759",
  "user": "user",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0",
  "user_id": 9000002
}

References #

user.login

#
Category
user

Description

A user signed in.

Documented on GitHub's user audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1775065222215,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDA1Mw==",
  "action": "user.login",
  "actor": "user",
  "actor_id": 9000002,
  "created_at": 1775065222215,
  "operation_type": "authentication",
  "request_access_security_header": null,
  "request_id": "E289:3D4446:F02F14:F18560:69CD587F",
  "user": "user",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0",
  "user_id": 9000002
}

References #

user.logout

#
Category
user

Description

A user signed out.

Documented on GitHub's user audit log reference.

user.new_device_used

#
Category
user

Description

A user signed in from a new device.

Documented on GitHub's user audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1775065213326,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDA1NA==",
  "action": "user.new_device_used",
  "actor": "user",
  "actor_id": 9000002,
  "created_at": 1775065213326,
  "operation_type": "create",
  "request_access_security_header": null,
  "request_id": "E289:3D4446:EFF791:F14D50:69CD587C",
  "user": "user",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0",
  "user_id": 9000002
}

References #

user.promote

#
Category
user

Description

An ordinary user account was promoted to a site administrator.

Documented on GitHub's user audit log reference.

user.recreate

#
Category
user

Description

A user's account was restored.

Documented on GitHub's user audit log reference.

user.remove_email

#
Category
user

Description

An email address was removed from a user account.

Documented on GitHub's user audit log reference.

user.remove_integration_secret

#
Category
user

Description

A user secret for Codespaces was deleted.

Documented on GitHub's user audit log reference.

user.rename

#
Category
user

Description

A username was changed.

Documented on GitHub's user audit log reference.

user.reset_password

#
Category
user

Description

A user reset their account password.

Documented on GitHub's user audit log reference.

user.show_private_contributions_count

#
Category
user

Description

A user changed the visibility of their private contributions. The number of contributions to private repositories on the user's profile are now shown.

Documented on GitHub's user audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1770437779047,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDA1NQ==",
  "action": "user.show_private_contributions_count",
  "actor": "user",
  "actor_id": 9000002,
  "created_at": 1770437779047,
  "operation_type": "modify",
  "request_access_security_header": null,
  "request_id": "F1A1:10B3E3:84D778:A9846E:6986BC7F",
  "user": "user",
  "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Mobile/15E148 Safari/604.1",
  "user_id": 9000002
}

References #

user.sign_in_from_unrecognized_device

#
Category
user

Description

A user signed in from an unrecognized device.

Documented on GitHub's user audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1775065222200,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDA1Ng==",
  "action": "user.sign_in_from_unrecognized_device",
  "actor": "user",
  "actor_id": 9000002,
  "created_at": 1775065222200,
  "operation_type": "authentication",
  "request_access_security_header": null,
  "request_id": "E289:3D4446:F02F14:F18560:69CD587F",
  "user": "user",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0",
  "user_id": 9000002
}

References #

user.sign_in_from_unrecognized_device_and_location

#
Category
user

Description

A user signed in from an unrecognized device and location.

Documented on GitHub's user audit log reference.

user.suspend

#
Category
user

Description

A user account was suspended.

Documented on GitHub's user audit log reference.

user.toggle_warn_private_email

#
Category
user

Documented on GitHub's user audit log reference.

user.two_factor_challenge_failure

#
Category
user

Description

A 2FA challenge issued for a user account failed.

Documented on GitHub's user audit log reference.

user.two_factor_challenge_success

#
Category
user

Description

A 2FA challenge issued for a user account succeeded.

Documented on GitHub's user audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1775065222158,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDA1Nw==",
  "action": "user.two_factor_challenge_success",
  "actor": "user",
  "actor_id": 9000002,
  "created_at": 1775065222158,
  "operation_type": "authentication",
  "request_access_security_header": null,
  "request_id": "E289:3D4446:F02F14:F18560:69CD587F",
  "user": "user",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0",
  "user_id": 9000002
}

References #

user.two_factor_recover

#
Category
user

Description

A user used their 2FA recovery codes.

Documented on GitHub's user audit log reference.

user.two_factor_recovery_codes_downloaded

#
Category
user

Description

A user downloaded 2FA recovery codes for their account.

Documented on GitHub's user audit log reference.

user.two_factor_recovery_codes_printed

#
Category
user

Description

A user printed 2FA recovery codes for their account.

Documented on GitHub's user audit log reference.

user.two_factor_recovery_codes_viewed

#
Category
user

Description

A user viewed 2FA recovery codes for their account.

Documented on GitHub's user audit log reference.

user.two_factor_requested

#
Category
user

Description

A user was prompted for a two-factor authentication code.

Documented on GitHub's user audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1775065213402,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDA1OA==",
  "action": "user.two_factor_requested",
  "actor": "user",
  "actor_id": 9000002,
  "created_at": 1775065213402,
  "operation_type": "authentication",
  "request_access_security_header": null,
  "request_id": "E289:3D4446:EFF791:F14D50:69CD587C",
  "user": "user",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0",
  "user_id": 9000002
}

References #

user.unblock_user

#
Category
user

Description

A user was unblocked by another user.

Documented on GitHub's user audit log reference.

user.unsuspend

#
Category
user

Description

A user account was unsuspended.

Documented on GitHub's user audit log reference.

user.update_integration_secret

#
Category
user

Description

A user secret for Codespaces was updated.

Documented on GitHub's user audit log reference.

user.update_new_repository_default_branch_setting

#
Category
user

Documented on GitHub's user audit log reference.