For AI agents: this page in Markdown: https://www.pubnub.com/docs/security/audit-log.md. Documentation index: https://www.pubnub.com/llms-full.txt.

Audit log

The Audit Log in the Admin Portal records every configuration action taken across a PubNub organization: who changed an app, keyset, user role, Service Integration, or account setting, and when. It covers actions from the Admin Portal UI, the Admin API, and OAuth integrations with the PubNub MCP server.

The PubNub Audit Log shows the full event history on the Starter and Pro plans. On the Free plan, the PubNub Audit Log shows a preview of the 5 most recent events. Only members with the Account Owner or Account Admin role can open the Audit Log. For what each role permits, see Admin Portal roles.

What each event records​

The Audit Log lists events in a table, from most recent to oldest. Each event records these fields:

FieldDescription
DateTimestamp of the event.
InitiatorThe user or Service Integration that performed the action. For portal users, this shows the email address and user ID. For Service Integrations, this shows the integration name and ID.
Event typeThe specific action that occurred, for example KeysetConfigChanged or UserRoleAdded.
LabelsIdentifiers for the affected resources, such as an application or keyset ID.
PayloadA JSON object with the full details of the change. Its fields differ for each event type. Expand a row to see it.

For example, the payload of an AppCreated event holds the new app's ID, name, status, owner, account, creation time, and properties:

{
"id": 333,
"name": "New App",
"app_id": 333,
"status": 1,
"created": "2026-09-09 09:45:28",
"owner_id": 123,
"account_id": 123,
"properties": {
"stats_channel": "ABCDEFG"
}
}

Event types​

The Audit Log captures events across six categories.

User activity​

Event typeDescriptionPortal UIAdmin API
UserRoleAddedA role was assigned to a user.YesN/A
UserRoleRevokedA role was removed from a user.YesN/A
UserAccountAccessGrantedA user was granted access to the account.YesN/A
UserAccountAccessRevokedA user's access to the account was revoked.YesN/A
UserAcceptedInvitationA user accepted an invitation to join the account.YesN/A

App management​

Event typeDescriptionPortal UIAdmin API
AppCreatedA new app was created.NoYes
AppRenamedAn app was renamed.NoYes
AppDisabledAn app was disabled.NoYes
AppChangedAn app attribute was changed. Catch-all for changes not covered by other app events.NoYes

Keyset management​

Event typeDescriptionPortal UIAdmin API
KeysetCreatedA new keyset was created.NoYes
KeysetRenamedA keyset was renamed.NoYes
KeysetDisabledA keyset was disabled.NoYes
KeysetEnabledA keyset was enabled.NoYes
KeysetTypeChangedA keyset type was changed between testing and production.YesYes
KeysetConfigChangedA keyset configuration was updated, for example enabling Access Manager or changing persistence settings.YesYes
SecretKeyRotatedA keyset's secret key was rotated. Secret key values are redacted in the payload.NoYes

Service Integrations​

Event typeDescriptionPortal UIAdmin API
ServiceIntegrationCreatedA new Service Integration was created.YesN/A
ServiceIntegrationUpdatedA Service Integration was updated.YesN/A
ServiceIntegrationDeletedA Service Integration was deleted.YesN/A
ApiKeyCreatedAn API key was created for a Service Integration.YesN/A
ApiKeyRevokedAn API key for a Service Integration was revoked.YesN/A

Partner (OEM)​

Event typeDescriptionPortal UIAdmin API
OemCustomerCreatedA partner customer was created.NoYes
OemCustomerUpdatedA partner customer was updated.NoYes
OemCustomerKeysetsAssignedKeysets were assigned to a partner customer.NoYes

Account settings​

Event typeDescriptionPortal UIAdmin API
AccountAuthSettingsUpdatedAccount authentication settings were changed, for example MCP access.YesN/A
VersionPinnedA server version was pinned.YesN/A

Was this page useful?

Last updated on