When it is written
Microsoft Purview writes CreateRBACRoleGroupDefinition (record type 87, SecurityComplianceRBAC) when an RBAC role group definition is created. In the portal this is a custom role group: the admin names it (the name cannot be changed afterwards), picks its roles and its members. Creating role groups takes the Role Management role, which only the Organization Management role group holds by default, or the Global Administrator role.
PreExecutionMessage holds the role group as requested: its internal name, display name, description and roles (RolesDetail, each with RoleId and RoleName). PostExecutionMessage holds the role group as created, with its new RoleGroupId. Both are typed as strings that carry these properties, so a SIEM may have to parse the text first. Microsoft does not say how the members chosen in the same wizard are recorded; look for GrantPermissionsAsync records that name the new role group.
How to turn it on
Microsoft 365 unified audit log (Microsoft Purview) records CreateRBACRoleGroupDefinition calls to Microsoft 365 unified audit log (Microsoft Purview) without any setup. Vendor documentation
eDiscovery activities and Microsoft Purview role group changes are recorded in the Microsoft 365 unified audit log by Microsoft Purview Audit (Standard), which is on by default for most organizations. 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).
- What is recorded: eDiscovery activities performed in the Microsoft Purview portal or in PowerShell (cases, searches, holds, review sets, exports), and the creation, change and deletion of Microsoft Purview role groups and their user assignments. eDiscovery done with cmdlets is returned by a separate activity group, eDiscovery cmdlet activities, which reads the cmdlet audit log; Microsoft does not say whether those records use the operation names of this source.
- Retention: 180 days with Audit (Standard). The one-year default policy of Audit (Premium) covers only Microsoft Entra ID, Exchange, OneDrive and SharePoint records, so these records stay 180 days unless a custom audit log retention policy keeps them longer.
- Collection: the Office 365 Management Activity API publishes these records in the
Audit.Generalcontent type (every workload outside Microsoft Entra ID, Exchange and SharePoint). 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 describes theOfficeActivitytable of Microsoft Sentinel's Microsoft 365 connector as Exchange, SharePoint and Teams logs: the Purview records are not in it, so collect them through the Management Activity API. - Delay: Microsoft guarantees no delivery time: 60 to 90 minutes is typical for the core services, and Microsoft notes that records of other services can take longer.
- Turning auditing off (
Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false) also stops the Management Activity API; 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 CreateRBACRoleGroupDefinition -ResultSize 5 | Select-Object -ExpandProperty AuditDataFields
The operation’s own fields first, then the fields every Microsoft 365 unified audit log (Microsoft Purview) record has. Field names are the JSON paths of the record as the vendor documents it.
| Field | What it holds |
|---|---|
PreExecutionMessage. | Internal name of the role group. |
PreExecutionMessage. | Display name of the role group. |
PreExecutionMessage. | Description of the role group. |
PreExecutionMessage. | The roles in the role group, each with RoleId and RoleName. |
PostExecutionMessage. | Identifier (GUID) of the role group that was created. |
Fields every Microsoft 365 unified audit log (Microsoft Purview) record has (12)
| Field | What it holds |
|---|---|
CreationTime | When the record was generated, in UTC. |
Id | Unique identifier of the audit record. |
OperationRead by 1 rule | The activity (CaseAdded, GrantPermissionsAsync...). The operation this page is about. |
RecordType | The kind of record (24 Discovery for eDiscovery activities in the Microsoft Purview portal, 87 SecurityComplianceRBAC for role group management). |
Workload | The service where the activity occurred. Microsoft does not document the value for eDiscovery and role group records; read it in your own records before filtering on it. |
OrganizationId | GUID of the Microsoft 365 tenant, the same in every service. |
UserId | UPN of the user who performed the activity. |
UserKey | An alternative ID for the user in UserId; for eDiscovery activities usually the same value. |
UserType | Who performed the activity (0 Regular, 2 Admin, 3 DCAdmin, 4 System, 5 Application, 6 ServicePrincipal...). |
ClientIP | Address of the device used for the activity. Microsoft includes it for every activity of the current eDiscovery experience; a record without it comes from the classic experience. |
ResultStatus | Whether the activity succeeded. Role group records write Success or Failed. Microsoft lists no values for eDiscovery records (its common schema names Succeeded, PartiallySucceeded and Failed), so read the value in your own records before filtering on it. |
Version | Version number of the record format for this activity. |
Values to know
PreExecutionMessage.RolesDetail
| Value | Meaning | Signal |
|---|---|---|
contains Export, Preview, Compliance Search, RMS Decrypt or Search And Purge | Members will be able to search, read, decrypt, export or purge contentWhat the rule exists for. Confirm the role group was requested and who it is for. | Attack signal |
other roles only | A role group without access to content | Worth knowing |
Volume and noise
Low. Compliance teams create custom role groups to split eDiscovery work (Microsoft suggests combinations such as Case Management with Export for export-only staff). A new role group that holds Export, Preview, Compliance Search, RMS Decrypt or Search And Purge, created by an account that does not usually manage roles, is the record to read first.
Keeping it manageable
- Read
PreExecutionMessage.RolesDetailand flag role groups that hold the roles which reach content (Export, Preview, Compliance Search, RMS Decrypt, Search And Purge). - Look for the
GrantPermissionsAsyncrecords that follow, to see who was put in the new role group. - Keep a list of the custom role groups the organization approved and review any new name.
Sample event
A Microsoft 365 unified audit log (Microsoft Purview) record in the vendor’s format, with made-up values.
{
"CreationTime": "2026-11-18T09:30:12",
"Id": "6f1c2d3e-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
"Operation": "CreateRBACRoleGroupDefinition",
"OrganizationId": "00000000-0000-0000-0000-00000000c0de",
"RecordType": 87,
"UserKey": "compliance-admin@corp.example.com",
"UserType": 2,
"Version": 1,
"ClientIP": "203.0.113.24",
"UserId": "compliance-admin@corp.example.com",
"ResultStatus": "Success",
"PreExecutionMessage": {
"RoleGroupId": "00000000-0000-0000-0000-0000000c0570",
"RoleGroupName": "ExportOnlyStaff",
"RoleGroupDisplayName": "Export only staff",
"RoleGroupDescription": "Exports for the legal team",
"RolesDetail": [
{
"RoleId": "00000000-0000-0000-0000-0000000001e1",
"RoleName": "Case Management"
},
{
"RoleId": "00000000-0000-0000-0000-0000000001e2",
"RoleName": "Export"
}
]
},
"PostExecutionMessage": {
"RoleGroupId": "00000000-0000-0000-0000-0000000c0570",
"RoleGroupName": "ExportOnlyStaff",
"RoleGroupDisplayName": "Export only staff"
}
}Attacks this event reveals
Detection rules that read this event: