|
| 1 | +--- |
| 2 | +description: List of events that Codacy can log for an organization. |
| 3 | +--- |
| 4 | + |
| 5 | +# Audit logs for organizations |
| 6 | + |
| 7 | +{% |
| 8 | + include-markdown "../assets/includes/paid.md" |
| 9 | + start="<!--paid-feature-business-start-->" |
| 10 | + end="<!--paid-feature-business-end-->" |
| 11 | +%} |
| 12 | + |
| 13 | +Codacy logs important events in your organization, reflecting when your team members execute specific operations. This enables the generation of comprehensive reports to assist you with the audit process. For example, you can track who added a repository to Codacy, or changed the settings of a coding standard. |
| 14 | + |
| 15 | +[Organization admins and organization managers](./roles-and-permissions-for-organizations.md) can obtain the audit log data of the organization events using the Codacy API endpoint [listAuditLogsForOrganization](https://api.codacy.com/api/api-docs#listauditlogsfororganization). |
| 16 | + |
| 17 | +The retention period of audit logs for organization events is one year. |
| 18 | + |
| 19 | +## Audit log events |
| 20 | + |
| 21 | +Each audit log tracks when a Codacy user executed a specific operation in your organization using the Codacy app or the [Codacy API](https://api.codacy.com/api/api-docs#codacy-api). Each operation is identified by an **action**. For the detailed content of each audit log, see the [Codacy API reference](https://api.codacy.com/api/api-docs#listauditlogsfororganization). |
| 22 | + |
| 23 | +The sections below list the events that Codacy logs for your organization at user, organization, and repository levels. |
| 24 | + |
| 25 | +### User |
| 26 | + |
| 27 | +|Event|Description|Action| |
| 28 | +|-----|-----------|------| |
| 29 | +|Log in|User logged in to Codacy|`user.login`| |
| 30 | +|Create [account API token](../codacy-api/api-tokens.md#account-api-tokens)|New account API token created|`user.tokens.create`| |
| 31 | +|Read account API token|List of account API tokens retrieved|`user.tokens.read`| |
| 32 | +|Delete account API token|Account API token deleted|`user.tokens.delete`| |
| 33 | + |
| 34 | +### Organization |
| 35 | + |
| 36 | +|Event|Description|Action| |
| 37 | +|-----|-----------|------| |
| 38 | +|[Add organization](./what-are-organizations.md#adding-an-organization)|Organization added to Codacy|`organizations.create`| |
| 39 | +|[Add people](./managing-people.md#adding-people) to organization|New people added to the organization|`organizations.people.create`| |
| 40 | +|[Join organization](./managing-people.md#joining)|User joined the organization|`organizations.join`| |
| 41 | +|Update [repository management permissions](./roles-and-permissions-for-organizations.md#change-analysis-configuration)|Repository management permissions updated|`organizations.analysisconfigurationminimumpermission.update`| |
| 42 | +|Assign [organization manager role](./roles-and-permissions-for-organizations.md#managing-the-organization-manager-role)|Organization manager role assigned to a team member|`organizations.security.managers.create`| |
| 43 | +|Revoke organization manager role|Organization manager role revoked from a team member|`organizations.security.managers.delete`| |
| 44 | +|Update [default Git provider configuration](./integrations/default-git-provider-integration-settings.md)|Default Git provider configuration for the organization updated|`organizations.integrations.providersettings.update`| |
| 45 | +|Apply default Git provider configuration to all repositories|Default Git provider configuration applied to all repositories of the organization|`organizations.integrations.providersettings.apply`| |
| 46 | +|Create new organization hook|New organization webhook created|`organizations.settings.hooks.create`| |
| 47 | +|Create new [gate policy](./using-gate-policies.md)|New gate policy created|`organizations.gatepolicies.create`| |
| 48 | +|Update gate policy|Quality gate definition updated|`organizations.gatepolicies.update`| |
| 49 | +|Apply gate policy to repositories|Gate policy applied to a list of repositories|`organizations.gatepolicies.repositories.apply`| |
| 50 | +|Make gate policy default|Gate policy was made the default for the organization|`organizations.gatepolicies.setdefault`| |
| 51 | +|Make Codacy gate policy default|Built-in Codacy gate policy was made the default for the organization|`organizations.gatepolicies.setcodacydefault`| |
| 52 | +|Delete gate policy|Gate policy deleted|`organizations.gatepolicies.delete`| |
| 53 | +|Create new [coding standard](./using-coding-standards.md) using preset sensitivity levels|New coding standard created|`organizations.presetsstandards.create`| |
| 54 | +|Create new coding standard draft using individual language and code pattern settings|New coding standard draft created|`organizations.codingstandards.create`| |
| 55 | +|Create new coding standard from draft|New coding standard created|`organizations.codingstandards.promote`| |
| 56 | +|Update coding standard from draft|Coding standard updated|`organizations.codingstandards.promote`| |
| 57 | +|Apply coding standard to repositories|Coding standard applied to a list of repositories|`organizations.codingstandards.repositories.apply`| |
| 58 | +|Make coding standard default|Coding standard was made the default|`organizations.codingstandards.setdefault`| |
| 59 | +|Delete coding standard|Coding standard deleted|`organizations.codingstandards.delete`| |
| 60 | + |
| 61 | +### Repository |
| 62 | + |
| 63 | +|Event|Description|Action| |
| 64 | +|-----|-----------|------| |
| 65 | +|Create new [post-commit hook](../repositories-configure/integrations/post-commit-hooks.md)|New repository hook created|`repositories.integrations.postcommithook`| |
| 66 | +|Create [repository API token](../codacy-api/api-tokens.md#repository-api-tokens)|New repository API token created|`repositories.tokens.create`| |
| 67 | +|Read repository API token|List of repository API tokens retrieved|`repositories.tokens.read`| |
| 68 | +|Delete repository API token|Repository API token deleted|`repositories.tokens.delete`| |
| 69 | +|Update Git provider integration settings<br>([GitHub](../repositories-configure/integrations/github-integration.md#configuring), [Bitbucket](../repositories-configure/integrations/bitbucket-integration.md#configuring), or [GitLab](../repositories-configure/integrations/gitlab-integration.md#configuring))|Git provider integration settings for the repository updated|`repositories.integrations.providersettings.update`| |
| 70 | +|Refresh Git provider integration<br>(applies only to [Bitbucket](../repositories-configure/integrations/bitbucket-integration.md#refreshing) and [GitLab](../repositories-configure/integrations/gitlab-integration.md#refreshing))|Git provider integration for the repository refreshed|`repositories.integrations.refreshprovider`| |
0 commit comments