When it is written
Teams writes TeamsTenantSettingChanged when a global admin changes an organization-wide Teams setting in the Microsoft 365 admin center. Microsoft lists the settings: Teams itself for the organization, Skype for Business interoperability, the org chart view, private and channel meeting scheduling, video and screen sharing in meetings, animated images and their content rating, custom memes and stickers, org-wide bots and individual bots, extensions or tabs, side loading of bots, and channel email. The audit search shows the setting in its Item column.
For settings events the Teams schema has Name (the setting), OldValue and NewValue. Microsoft is migrating Teams settings from the Microsoft 365 admin center to the Teams admin center; a change made in the Teams admin center or with PowerShell is written as TeamsAdminAction, so this record covers only the settings still changed in the Microsoft 365 admin center.
How to turn it on
Microsoft 365 unified audit log (Microsoft Teams) records TeamsTenantSettingChanged 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 TeamsTenantSettingChanged -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 |
|---|---|
Name | Name of the setting that changed. The Teams schema has it only for settings events. |
OldValue | Value of the setting before the change. |
NewValue | Value of the setting after the change. |
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. |
Values to know
Name
| Value | Meaning | Signal |
|---|---|---|
org-wide bots, side loading of bots, extensions or tabs, channel email | A setting that lets apps, bots or outside email into teams and chatsThe changes the rule is there for. Confirm the change record; when the new value enables the feature, look for apps and bots added soon after. | Attack signal |
meeting, media and other user experience settings | A setting about how people use Teams | Worth knowing |
Volume and noise
Low. Organization-wide settings change when Teams is set up or a feature is opened to users. The rule reports every change; one that turns on bots, side loading of bots, extensions or tabs, or channel email, made by an admin account outside the team that owns Teams or without a change record, is the record to read first.
Keeping it manageable
- Read
Name,OldValueandNewValue, and give a higher severity to changes that enable bots, side loading of bots, extensions or tabs, or channel email. - Ask the team that owns Teams for the change record; organization-wide settings change rarely and on request.
- Watch
TeamsAdminActionas well; Teams settings are moving to the Teams admin center, where changes are recorded under that operation.
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": "TeamsTenantSettingChanged",
"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"
},
"Name": "Side loading of Bots",
"OldValue": "False",
"NewValue": "True"
}Attacks this event reveals
Detection rules that read this event: