For the complete documentation index, see llms.txt. This page is also available as Markdown.

Audit Logs API

Introduction / Overview

The Audit Logs API provides a structured way to retrieve audit log records for a given organization. It is designed to help administrators track and review actions performed within the system by capturing detailed event data.

This API returns audit events based on filter criteria provided in the request body, allowing users to narrow down results using:

  • Organization identifier (organizationKey)

  • User who performed the action (userLogin)

  • Audit category (category)

  • Operation performed (operation)

  • Event timestamp (createdAt)D

  • Trigger source (userTriggered)x`

Each audit log entry includes:

  • The user or system that initiated the action

  • The type of operation performed

  • The category of the event

  • The timestamp of occurrence

  • The resulting value or change (newValue)

The API supports pagination via query parameters, enabling efficient retrieval of large audit datasets.

Permissions Required

Access to this API is restricted to:

  • Organization Admin

  • Super Admin

Endpoint Details

  • HTTP Method: POST

  • URL: <CODESCAN_DOMAIN_URL>/_codescan/audit/logs?p=<PAGE_NUMBER>&ps=<PAGE_SIZE>


Request Body

Request Field Details

Field

Type

Required

Description

Possible Values

organizationKey

string

Yes

Organization key

userLogin

string

No

Login of user who triggered the action

category

string

No

Audit log category

PROJECT, USER_TOKEN, GROUP_PERMISSION, PERMISSION_TEMPLATE, PLUGIN, PROPERTY, QUALITY_GATE, QUALITY_PROFILE, USER, USER_GROUP, USER_PERMISSION

operation

enum

No

Operation performed

ADD, ADD_CHARACTERISTIC, ADD_EDITOR, ADD_GROUP, ADD_USER, DEACTIVATE, DELETE, DELETE_EDITOR, DELETE_GROUP, DELETE_USER, COMPONENT_KEY_UPDATE, COMPONENT_KEY_BRANCH_UPDATE, SET, SET_LICENSE, UPDATE, UPDATE_CHARACTERISTIC, UPDATE_COMPONENT_VISIBILITY

createdAt

string

No

Creation date or datetime of the audit event

Format: yyyy-MM-dd or yyyy-MM-dd'T'HH:mm:ssZExample: 2017-10-19 or 2017-10-19T13:00:00+0200

userTriggered

boolean

No

Whether the event was triggered by a user action

true, false

p

integer

No

The results page number.

1

ps

integer

No

The amount of results on each page. Max is 500

500

Example Request

Example Response

Response Field Details

Audit Log Entry (content)

Field

Description

organizationUuid

Unique identifier of the organization

userLogin

Login of the user who performed the action

userUuid

Unique identifier of the user

category

Audit log category

operation

Operation performed

newValue

Updated value or details of the change (JSON string)

createdAt

Timestamp of the audit event

userTriggered

Indicates whether the action was triggered by a user

Example: Project Analysis Event


Example: Group permission Assignment

Last updated

Was this helpful?