When it is written
Teams writes AppPublishedToCatalog when an app is added to the catalog; Microsoft lists it among the audited app management actions of admins. The catalog holds the organization's custom apps, which are available only inside the tenant and appear to users in the Built for your org section of the Teams store.
Microsoft documents two ways in. A Global or Teams administrator uploads the app package in the Teams admin center or the Teams client, and the app is available to the whole organization with no approval step. A user submits an app from the Teams client or with the Teams App Submission Graph API, and it becomes available after an admin approves it. Microsoft does not say which of these writes the record, or which properties name the app: read a record of your own before you build on it.
Publishing makes the app available; it does not install it. Installation in a team, a chat or for a user is a separate AppInstalled record.
How to turn it on
Microsoft 365 unified audit log (Microsoft Teams) records AppPublishedToCatalog calls to Microsoft 365 unified audit log (Microsoft Teams) without any setup. Vendor documentation
Microsoft Teams activity is recorded in the Microsoft 365 unified audit log by Microsoft Purview Audit (Standard), which is on by default for most organizations; audit data exists only from the moment auditing was turned on. Microsoft names two exceptions where auditing must be turned on by hand: tenants with Business Basic, Business Standard or Business Premium licences, and unmanaged tenants on enterprise trials. Check UnifiedAuditLogIngestionEnabled in Exchange Online PowerShell (in Security & Compliance PowerShell the property always reads False). Activity in private channels is recorded as it is for standard channels.
- Retention: 180 days with Audit (Standard) (90 days for records created before 17 October 2023). The one-year default policy of Audit (Premium) covers only Microsoft Entra ID, Exchange, OneDrive and SharePoint records, so Teams records stay 180 days unless an audit log retention policy for the
MicrosoftTeamsrecord type keeps them longer (up to 10 years with the add-on licence). - Collection: the Office 365 Management Activity API publishes Teams records in the
Audit.Generalcontent type. A subscription has to be started first (the first content can take up to 12 hours), content can be listed at most 7 days back, and records do not arrive in order. Microsoft Sentinel's Microsoft 365 data connector with Teams selected writes them to theOfficeActivitytable. - Delay: Microsoft guarantees no delivery time. For Teams, records are typically available 60 to 90 minutes after the activity.
- Attribution: when team membership is changed through Microsoft Entra ID, the Microsoft 365 admin center or the Microsoft 365 Groups Graph API, Teams records show an existing team owner as the initiator, not the person who acted; Microsoft points to the Microsoft Entra ID or Microsoft 365 group audit records for those changes.
- Turning auditing off (
Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false) also stops the Management Activity API and Sentinel collection; the change is itself recorded as aSet-AdminAuditLogConfigrecord in the Exchange admin records.
Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabledGet-UnifiedAuditLogRetentionPolicy | Sort-Object -Property Priority -Descending | Format-List Priority,Name,RecordTypes,Operations,UserIds,RetentionDurationInvoke-RestMethod -Method Get -Uri "https://manage.office.com/api/v1.0/<tenant-id>/activity/feed/subscriptions/list" -Headers @{ Authorization = "Bearer <access-token>" }Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) -Operations AppPublishedToCatalog -ResultSize 5 | Select-Object -ExpandProperty AuditDataFields
The operation’s own fields first, then the fields every Microsoft 365 unified audit log (Microsoft Teams) record has. Field names are the JSON paths of the record as the vendor documents it.
| Field | What it holds |
|---|---|
ObjectId | The Common schema's property for the object of an activity. Microsoft does not document what an AppPublishedToCatalog record puts here, or which other properties name the app. |
Fields every Microsoft 365 unified audit log (Microsoft Teams) record has (13)
| Field | What it holds |
|---|---|
CreationTime | When the record was generated, in UTC. |
Id | Unique identifier of the audit record. |
OperationRead by 1 rule | The user or admin activity. The operation this page is about. |
RecordType | The kind of record, 25 (MicrosoftTeams) for Teams events. |
Workload | The Microsoft 365 service where the activity occurred. |
OrganizationId | GUID of the Microsoft 365 tenant, the same in every service. |
UserId | UPN of the user who performed the activity. For membership changes made outside Teams, an existing team owner instead of the real initiator. |
UserKey | An alternative ID for the user in UserId, a Microsoft Entra object ID. |
UserType | Who performed the activity (0 Regular, 2 Admin, 3 DCAdmin, 4 System, 5 Application, 6 ServicePrincipal, 9 PartnerTechnician, 10 Guest...). |
ClientIP | Address of the device used for the activity. For some services it is the address of an application acting for the user. |
ResultStatus | Whether the activity succeeded (Succeeded, PartiallySucceeded or Failed), when the record carries it. |
Version | Version number of the record format for this activity. |
AppAccessContext | The application context of the user or service principal that acted (ClientAppId, ClientAppName, AADSessionId, CorrelationId, UniqueTokenId, IssuedAtTime), when a Microsoft Entra token was involved. |
Volume and noise
Low. Development and collaboration teams publish their own apps, and admins approve user submissions. A publication by an administrator account outside the team that owns Teams, an app nobody in the organization recognizes, or a publication followed quickly by installations driven by the same account is the record to read first.
Keeping it manageable
- Find the app in Teams apps > Manage apps of the Teams admin center and read its publisher, its permissions and where it is installed.
- Keep the list of custom apps the organization approved, with their owners, and review any new one against it.
- Follow the app:
AppInstalledandBotAddedToTeamrecords soon after, especially by the sameUserId, show where it went.
Sample event
A Microsoft 365 unified audit log (Microsoft Teams) record in the vendor’s format, with made-up values.
{
"CreationTime": "2026-11-18T09:30:12",
"Id": "6f1c2d3e-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
"Operation": "AppPublishedToCatalog",
"OrganizationId": "00000000-0000-0000-0000-00000000c0de",
"RecordType": 25,
"UserKey": "00000000-0000-0000-0000-0000000ad111",
"UserType": 2,
"Version": 1,
"Workload": "MicrosoftTeams",
"ClientIP": "203.0.113.24",
"UserId": "teams-admin@corp.example.com",
"AppAccessContext": {
"AADSessionId": "00000000-0000-0000-0000-00000000a5e5",
"CorrelationId": "00000000-0000-0000-0000-0000000c0aa1"
},
"ObjectId": "<app-identifier>"
}Attacks this event reveals
Detection rules that read this event: