1. Resources
  2. Detection sources
  3. TeamsTenantSettingChanged

TeamsTenantSettingChanged: An organization-wide Microsoft Teams setting was changed in the Microsoft 365 admin center

Recorded when a global admin changes an organization-wide Teams setting in the Microsoft 365 admin center, such as bots, side loading of bots, extensions or tabs, or channel email. Name, OldValue and NewValue say what changed.

Log source
Microsoft 365 unified audit log (Microsoft Teams)
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
Microsoft 365 unified audit log (Microsoft Teams) (Microsoft 365 unified audit log (Microsoft Teams), on by default)
Service
Microsoft 365 unified audit log (Microsoft Teams)
Operation
TeamsTenantSettingChanged
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 1 tactic
Fields the rules read
Operation

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 MicrosoftTeams record 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.General content 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 the OfficeActivity table.
  • 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 a Set-AdminAuditLogConfig record in the Exchange admin records.
Check that the unified audit log is on (read only, Exchange Online PowerShell)
Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabled
Based on vendor documentation.
List custom audit log retention policies (read only, Security & Compliance PowerShell; the default policy is not shown)
Get-UnifiedAuditLogRetentionPolicy | Sort-Object -Property Priority -Descending | Format-List Priority,Name,RecordTypes,Operations,UserIds,RetentionDuration
Based on vendor documentation.
List the Management Activity API subscriptions of the tenant (read only; Audit.General must be enabled)
Invoke-RestMethod -Method Get -Uri "https://manage.office.com/api/v1.0/<tenant-id>/activity/feed/subscriptions/list" -Headers @{ Authorization = "Bearer <access-token>" }
Based on vendor documentation.
Find recent TeamsTenantSettingChanged records (read only)
Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) -Operations TeamsTenantSettingChanged -ResultSize 5 | Select-Object -ExpandProperty AuditData
Based on vendor documentation.

Fields

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.

FieldWhat it holds
NameName of the setting that changed. The Teams schema has it only for settings events.
OldValueValue of the setting before the change.
NewValueValue of the setting after the change.
Fields every Microsoft 365 unified audit log (Microsoft Teams) record has (13)
FieldWhat it holds
CreationTimeWhen the record was generated, in UTC.
IdUnique identifier of the audit record.
OperationRead by 1 ruleThe user or admin activity. The operation this page is about.
RecordTypeThe kind of record, 25 (MicrosoftTeams) for Teams events.
WorkloadThe Microsoft 365 service where the activity occurred.
OrganizationIdGUID of the Microsoft 365 tenant, the same in every service.
UserIdUPN of the user who performed the activity. For membership changes made outside Teams, an existing team owner instead of the real initiator.
UserKeyAn alternative ID for the user in UserId, a Microsoft Entra object ID.
UserTypeWho performed the activity (0 Regular, 2 Admin, 3 DCAdmin, 4 System, 5 Application, 6 ServicePrincipal, 9 PartnerTechnician, 10 Guest...).
ClientIPAddress of the device used for the activity. For some services it is the address of an application acting for the user.
ResultStatusWhether the activity succeeded (Succeeded, PartiallySucceeded or Failed), when the record carries it.
VersionVersion number of the record format for this activity.
AppAccessContextThe 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

ValueMeaningSignal
org-wide bots, side loading of bots, extensions or tabs, channel emailA 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 settingsA setting about how people use TeamsWorth 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, OldValue and NewValue, 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 TeamsAdminAction as 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:

References