Microsoft Teams activity
| Operation | Description | Sample | Rule |
|---|---|---|---|
| any | Catch-all for M365-MicrosoftTeams rules matching the RecordType but no specific Operation. | N | N |
| Channel | Channel Added activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture). | Y | N |
| Member | A user was added as a member of a Microsoft Teams team or channel. | N | Y |
| Member | A user was removed from a Microsoft Teams team or channel. | Y | Y |
| Message | Message Sent activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture). | Y | N |
| Tab | Tab Added activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture). | Y | N |
| Team | Team Created activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture). | Y | N |
| Team | A Microsoft Teams team was deleted. | Y | Y |
| Teams | Teams Session Started activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture). | Y | N |
| Teams | A tenant-level Microsoft Teams configuration setting was changed by an administrator. | N | Y |
| Chat | A Microsoft Teams chat was created, as documented in the Microsoft Purview audit activity reference. | N | Y |
any: Microsoft Teams activity (catch-all)
#Description
Catch-all for M365-MicrosoftTeams rules matching the RecordType but no specific Operation.
ChannelAdded
#Description
Channel Added activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture).
Example Audit Record #
{
"AADGroupId": "ca5d50d9-83af-43d6-8a3a-4f3c00590bec",
"AppAccessContext": {
"AADSessionId": "0022840a-e4ab-884c-587f-d20d24637227",
"IssuedAtTime": "2026-07-02T02:05:02Z",
"UniqueTokenId": "EZ1kQWhHXUamXGzX4vdFAA"
},
"ChannelGuid": "19:00000000000000000000000000000002@thread.tacv2",
"ChannelName": "dw-harness-60974bd7-channel",
"ChannelType": "Standard",
"CreationTime": "2026-07-02T02:10:25Z",
"Id": "ba48d616-6851-4c6e-9559-cbc9f8ac1266",
"Operation": "ChannelAdded",
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"RecordType": 25,
"TeamGuid": "19:1woqJPMNE2DLPz-FlUMx_ppjKalYh1NsryTVKFYlnas1@thread.tacv2",
"TeamName": "dw-harness-60974bd7",
"UserId": "adminuser@example.onmicrosoft.com",
"UserKey": "11111111-1111-1111-1111-111111111111",
"UserType": 2,
"Version": 1,
"Workload": "MicrosoftTeams"
}
MemberAdded
#Description
A user was added as a member of a Microsoft Teams team or channel.
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
TimeDeleted (kusto rule field) | cross_field_compare | TimeAdded | 1 rule | kusto |
m365::Workload (kusto rule field) | eq | microsoftteams | 1 rule | kusto |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Kusto #
T1078, T1098, T1136, T1199↳ also matches MemberRemoved T1136↳ also matches MemberRemoved
MemberRemoved
#Description
A user was removed from a Microsoft Teams team or channel.
Example Audit Record #
{
"AADGroupId": "0d5495a4-0e78-4a46-8f73-919ad36fb319",
"CommunicationType": "Team",
"CreationTime": "2026-07-02T07:53:08Z",
"Id": "4b34fcf7-9264-5e05-8427-7ca6c49d087d",
"IsBilateral": false,
"ItemName": "NCT",
"Members": [
{
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"Role": 1,
"UPN": "47b593cb-31b1-4f8a-bc28-89d4f17acea3"
},
{
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"Role": 1,
"UPN": "490cfe27-1e24-48d8-a3ee-bdacf3c3ee4b"
}
],
"Operation": "MemberRemoved",
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"ParticipantInfo": {
"HasForeignTenantUsers": false,
"HasGuestUsers": false,
"HasUnauthenticatedUsers": false
},
"RecordType": 25,
"ResourceTenantId": "00000000-0000-0000-0000-000000000001",
"TeamGuid": "19:5kFR8dAxYxQpPHKVnxRwB5v6WEC0cIQTN3w7xSs7UvQ1@thread.tacv2",
"TeamName": "NCT",
"UserId": "Microsoft Teams - Teams And Channels Service",
"UserKey": "b55b276d-2b09-4ad2-8de5-f09cf24ffba9",
"UserMRI": "28:app:00000000-0000-0000-0000-000000000001_b55b276d-2b09-4ad2-8de5-f09cf24ffba9",
"UserType": 5,
"Version": 1,
"Workload": "MicrosoftTeams"
}
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
TimeDeleted (kusto rule field) | cross_field_compare | TimeAdded | 1 rule | kusto |
m365::Workload (kusto rule field) | eq | microsoftteams | 1 rule | kusto |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Kusto #
T1078, T1098, T1136, T1199↳ also matches MemberAdded T1136↳ also matches MemberAdded YARA-L #
MessageSent
#Description
Message Sent activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture).
Example Audit Record #
{
"AADGroupId": "ca5d50d9-83af-43d6-8a3a-4f3c00590bec",
"AppAccessContext": {
"AADSessionId": "0022840a-e4ab-884c-587f-d20d24637227",
"APIId": "00000003-0000-0000-c000-000000000000",
"ClientAppId": "22222222-2222-2222-2222-222222222222",
"ClientAppName": "dw-activity-gen",
"CorrelationId": "0b743928-a057-446f-a96c-7b6905ef2d48",
"IssuedAtTime": "2026-07-02T02:04:44Z",
"UniqueTokenId": "fok73fVNMECa2s8q2X5cAA"
},
"ChannelGuid": "19:00000000000000000000000000000002@thread.tacv2",
"CommunicationType": "Channel",
"CreationTime": "2026-07-02T02:10:25Z",
"Id": "866d4914-1e09-4edd-8992-e48c41710ec7",
"ItemName": "19:00000000000000000000000000000002@thread.tacv2",
"MessageId": "1782958225737",
"MessageSizeInBytes": 84,
"MessageVersion": "1782958225737",
"Operation": "MessageSent",
"OperationScope": 1,
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"RecordType": 25,
"TeamName": "dw-harness-60974bd7",
"UserId": "adminuser@example.onmicrosoft.com",
"UserKey": "11111111-1111-1111-1111-111111111111",
"UserType": 2,
"Version": 1,
"Workload": "MicrosoftTeams"
}
TabAdded
#Description
Tab Added activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture).
Example Audit Record #
{
"AADGroupId": "ca5d50d9-83af-43d6-8a3a-4f3c00590bec",
"AddOnGuid": "tab::b682ca35-f699-41f7-a888-eff88431e33b",
"AddOnName": "Notes",
"AddOnType": 3,
"AddOnUrl": "https://www.onenote.com/teams/ChannelNotes?ui={locale}&tenantId={tid}&upn={upn}&groupId={groupId}&theme={theme}&entityId={entityId}&subEntityId={subEntityId}&sessionId={sessionId}&ringId={ringId}&teamSiteUrl={teamSiteUrl}&channelType={channelType}&trackingId={appSessionId}&hostClientType={hostClientType}&channelName={channelName}&teamType={teamType}",
"AppAccessContext": {
"AADSessionId": "0022840a-e4ab-884c-587f-d20d24637227",
"IssuedAtTime": "2026-07-02T02:05:20Z",
"UniqueTokenId": "p5CWC8fQp0WBTwURdPVFAA"
},
"ChannelGuid": "19:1woqJPMNE2DLPz-FlUMx_ppjKalYh1NsryTVKFYlnas1@thread.tacv2",
"ChannelName": "General",
"ChannelType": "Standard",
"ClientIP": "::ffff:203.0.113.10",
"CommunicationType": "Channel",
"CreationTime": "2026-07-02T02:10:22Z",
"Id": "c7b3dd75-4bba-5e5a-9f90-20e6e6655f79",
"IsBilateral": false,
"Operation": "TabAdded",
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"RecordType": 25,
"ResourceTenantId": "00000000-0000-0000-0000-000000000001",
"TabType": "extension",
"TeamGuid": "19:1woqJPMNE2DLPz-FlUMx_ppjKalYh1NsryTVKFYlnas1@thread.tacv2",
"TeamName": "dw-harness-60974bd7",
"UserId": "adminuser@example.onmicrosoft.com",
"UserKey": "11111111-1111-1111-1111-111111111111",
"UserMRI": "8:orgid:11111111-1111-1111-1111-111111111111",
"UserType": 0,
"Version": 1,
"Workload": "MicrosoftTeams"
}
TeamCreated
#Description
Team Created activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture).
Example Audit Record #
{
"AppAccessContext": {
"AADSessionId": "0022840a-e4ab-884c-587f-d20d24637227",
"IssuedAtTime": "2026-07-02T02:05:03Z",
"UniqueTokenId": "eNxdqQmucEeZOeKcEzBMAA"
},
"CreationTime": "2026-07-02T02:10:10Z",
"Id": "2f9711aa-f826-4773-9626-a7f0b34875e4",
"Operation": "TeamCreated",
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"RecordType": 25,
"TeamGuid": "19:1woqJPMNE2DLPz-FlUMx_ppjKalYh1NsryTVKFYlnas1@thread.tacv2",
"TeamName": "dw-harness-60974bd7",
"UserId": "adminuser@example.onmicrosoft.com",
"UserKey": "11111111-1111-1111-1111-111111111111",
"UserType": 0,
"Version": 1,
"Workload": "MicrosoftTeams"
}
TeamDeleted
#Description
A Microsoft Teams team was deleted.
Example Audit Record #
{
"AADGroupId": "ca5d50d9-83af-43d6-8a3a-4f3c00590bec",
"AppAccessContext": {
"AADSessionId": "006b25ca-502b-b64c-eece-a415f825b7c1",
"IssuedAtTime": "2026-07-02T02:05:21Z",
"UniqueTokenId": "6AyzXCNIZEiEWoobVo4oAA"
},
"CreationTime": "2026-07-02T02:10:36Z",
"Id": "78fc3aac-2f4a-4356-905f-e2b76b5f5f0c",
"Operation": "TeamDeleted",
"OrganizationId": "00000000-0000-0000-0000-000000000001",
"RecordType": 25,
"TeamGuid": "19:1woqJPMNE2DLPz-FlUMx_ppjKalYh1NsryTVKFYlnas1@thread.tacv2",
"TeamName": "dw-harness-60974bd7",
"UserId": "Microsoft Teams Sync",
"UserKey": "62b732f7-fc71-40bc-b27d-35efcb0509de",
"UserType": 5,
"Version": 1,
"Workload": "MicrosoftTeams"
}
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
m365::Workload (kusto rule field) | eq | microsoftteams | 1 rule | kusto |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Kusto #
T1485, T1489
TeamsSessionStarted
#Description
Teams Session Started activity in Microsoft Teams, recorded in the Unified Audit Log (observed in first-party capture).
Example Audit Record #
{
"AppAccessContext": {
"AADSessionId": "0022840a-e4ab-884c-587f-d20d24637227",
"IssuedAtTime": "2026-07-03T01:52:12",
"UniqueTokenId": "TGQMyWP-eEaoKSIUKgABAA"
},
"CreationDate": "2026-07-03T01:57:13",
"CreationTime": "2026-07-03T01:57:13",
"Id": "9af2c3e9-aac5-4f27-b92c-69a5673f3b9b",
"ObjectId": "TeamsGraphService (Unknown)",
"Operation": "TeamsSessionStarted",
"Operations": "TeamsSessionStarted",
"OrganizationId": "11111111-1111-1111-1111-111111111111",
"RecordType": "MicrosoftTeams",
"UserId": "adminuser@example.onmicrosoft.com",
"UserKey": "aaaaaaaa-0000-0000-0000-000000000001",
"UserType": "Regular",
"Version": 1,
"Workload": "MicrosoftTeams"
}
TeamsTenantSettingChanged
#Description
A tenant-level Microsoft Teams configuration setting was changed by an administrator.
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
Provider_Name (elastic rule field) | eq | microsoftteams | 1 rule | elastic |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Elastic #
T1484, T1562
ChatCreated
#Description
A Microsoft Teams chat was created, as documented in the Microsoft Purview audit activity reference.
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
Provider_Name (elastic rule field) | eq | microsoftteams | 1 rule | elastic |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Elastic #
T1566, T1566.003
References #
M365 audit records use different field names on each surface #
The same Unified Audit Log record uses different field names on each surface. A query built for one surface can silently miss on another. These pages document the Management Activity API JSON names, the same names Search-UnifiedAuditLog and the Office 365 Management Activity API return.
- Purview CSV export flattens each record to four columns (
CreationDate,UserIds,Operations,AuditData). The API field names live only inside theAuditDataJSON blob. Expand it withConvertFrom-Json. The wrapper columns are renamed too:CreationDatenotCreationTime,UserIdsnotUserId,OperationsnotOperation. - Sentinel's
OfficeActivitytable renames several fields and turns two integer enum columns into strings. The table below maps them.
| API JSON (event pages) | OfficeActivity column | Note |
|---|---|---|
Id | OfficeId | Renamed. |
Workload | OfficeWorkload | Renamed. |
ObjectId | OfficeObjectId | Renamed. |
CreationTime | TimeGenerated | Renamed. OfficeActivity has no CreationTime column. |
SiteUrl | Site_Url | Renamed (SharePoint family). |
RecordType | RecordType | Same name; the Int32 enum becomes its string enum name. |
UserType | UserType | Same name; the Int32 enum becomes a string. |
ClientIP | ClientIP, Client_IPAddress | Both columns present on OfficeActivity. |
Scope | (none) | No OfficeActivity equivalent under any name. Recover it from the API JSON or the Purview AuditData blob. |
Operation, UserId, ResultStatus, UserKey, AppAccessContext, OrganizationId | same names | Unchanged. No _s / _d suffixes (a native table, not a custom log). |
Mapping verified against the OfficeActivity table reference, the Management Activity API schema, and the Purview audit-record export format.