1. Resources
  2. Detection sources
  3. SiteCollectionAdminAdded

SiteCollectionAdminAdded: An account was made site collection administrator of a SharePoint site or a OneDrive

Recorded when a site collection administrator, a site owner or a SharePoint admin adds someone as site collection administrator, including an admin who gives themselves access to another user's OneDrive.

Log source
Microsoft 365 unified audit log (SharePoint and OneDrive)
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
Microsoft 365 unified audit log (SharePoint and OneDrive) (Microsoft 365 unified audit log (SharePoint and OneDrive), on by default)
Service
Microsoft 365 unified audit log (SharePoint and OneDrive)
Operation
SiteCollectionAdminAdded
Detects
1 attack (2 rules · 1 detection logic)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
3 groups that MITRE ATT&CK records using these techniques
Fields the rules read
SiteUrlOperationObjectId

When it is written

SharePoint writes SiteCollectionAdminAdded when a site collection administrator or owner adds a person as site collection administrator of a site. A site collection administrator has full control of the site collection and all its subsites; for a OneDrive, that is every file of its owner. Microsoft states that the record is also written when an admin gives themselves access to a user's OneDrive, by editing the user profile in the SharePoint admin center (Manage site collection owners) or with Create link to files in the Microsoft 365 admin center.

For admin events of this kind the record carries ModifiedProperties, which Microsoft describes as the property that changed (for example the Site Admin group), the new value (such as the user who was added) and the previous value. Microsoft does not state which field of this record carries the site address: it documents ObjectId for SharePoint activity as the full path of a file or folder, and SiteUrl only in the file and sharing schemas. Expect the address in ObjectId or SiteUrl, and check it on a record of your own; a OneDrive has -my.sharepoint.com/personal/ in its address. When UserId is app@sharepoint, an application acted on behalf of a user or admin, for example while a Microsoft 365 group or a team was created; ApplicationDisplayName and EventData can show which task it was.

The record shows the grant, not its use: what the added account then opens or downloads appears as file records with its own UserId.

How to turn it on

Microsoft 365 unified audit log (SharePoint and OneDrive) records SiteCollectionAdminAdded calls to Microsoft 365 unified audit log (SharePoint and OneDrive) without any setup. Vendor documentation

SharePoint and OneDrive activity is 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). After auditing is turned on, records can take several hours to become searchable.

  • Retention follows the licence of the user who performed the activity: 180 days with Audit (Standard) (90 days for records created before 17 October 2023). With Audit (Premium) (E5, or an E5 Compliance or eDiscovery and Audit add-on) a default policy keeps SharePoint and OneDrive records one year; records of users without such a licence stay 180 days. Ten years needs a separate add-on licence and a retention policy.
  • Collection: the Office 365 Management Activity API publishes SharePoint and OneDrive records in the Audit.SharePoint 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 the order they happened. Microsoft Sentinel's Microsoft 365 data connector with SharePoint selected writes them to the OfficeActivity table.
  • Delay: Microsoft guarantees no delivery time. For SharePoint and OneDrive, records are typically available 60 to 90 minutes after the activity.
  • 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.SharePoint 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 SiteCollectionAdminAdded records (read only)
Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) -Operations SiteCollectionAdminAdded -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 (SharePoint and OneDrive) record has. Field names are the JSON paths of the record as the vendor documents it.

FieldWhat it holds
SiteUrlRead by 1 ruleURL of the site or OneDrive. Microsoft lists SiteUrl in the file and sharing schemas, not in the schema of other SharePoint events, so it may be absent; the OneDrive rule also reads ObjectId.
ModifiedPropertiesThe change, as Name (the property, for example the Site Admin group), NewValue (such as the user who was added) and OldValue (the previous value).
EventDataOptional payload of the event; with app@sharepoint it can help identify the task that added the admin.
Fields every Microsoft 365 unified audit log (SharePoint and OneDrive) record has (21)
FieldWhat it holds
CreationTimeWhen the record was generated, in UTC.
IdUnique identifier of the audit record.
OperationRead by 2 rulesThe user or admin activity. The operation this page is about.
RecordTypeThe kind of record (4 SharePoint for site and admin events, 6 SharePointFileOperation for file and page events, 14 SharePointSharingOperation for sharing, 36 SharePointListOperation for lists).
WorkloadThe Microsoft 365 service the activity happened in, SharePoint or OneDrive.
OrganizationIdGUID of the Microsoft 365 tenant, the same in every service.
UserIdUPN of the user who performed the activity. System accounts such as SHAREPOINT\system appear too, and app@sharepoint means an application with SharePoint app-only access acted for a user, an admin or a service.
UserKeyAn alternative ID for the user in UserId (the passport unique ID, PUID, for SharePoint and OneDrive users).
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, such as Office on the web, acting for the user.
ObjectIdRead by 1 ruleFor SharePoint and OneDrive activity, the full URL of the file or folder the activity was about. Microsoft does not say what it holds for a site-level event; expect the site address there, and check it on a record of your own.
ResultStatusWhether the activity succeeded (Succeeded, PartiallySucceeded or Failed), when the record carries it.
VersionVersion number of the record format for this activity.
ScopeWhere the event was created, online for Microsoft 365 or onprem for an on-premises server; SharePoint is the only workload that sends on-premises events.
AppAccessContextThe application context of the user or service principal that acted (ClientAppId, ClientAppName, AADSessionId, CorrelationId, UniqueTokenId, IssuedAtTime), when a Microsoft Entra token was involved.
SiteGUID of the site the item belongs to.
ItemTypeThe type of object the activity was about (File, Folder, Web, Site, Tenant, DocumentLibrary, Page).
EventSourceWhere in SharePoint the event occurred, SharePoint or ObjectModel.
UserAgentThe user's client or browser, as the client reports it.
ApplicationIdID of the application that performed the activity, when an application did.
ApplicationDisplayNameDisplay name of that application; with app@sharepoint it helps tell which task produced the record.

Values to know

ObjectId

ValueMeaningSignal
contains -my.sharepoint.com/personal/The site is a user's OneDriveWhat the OneDrive rule reports: someone now has full control of another person's files. Confirm the offboarding or legal request behind it.Attack signal
a team or communication site URLAn admin was added to a siteRoutine for site setup and handover; read it when the site holds sensitive content.Worth knowing

UserId

ValueMeaningSignal
app@sharepointAn application with SharePoint app-only access made the change for a user, an admin or a serviceMicrosoft names the creation of a Microsoft 365 group or a team among the tasks that write records as this user (creating the site collection, updating lists, adding members to a SharePoint group) and says group or team owners are automatically included as site admins. It does not say that this operation is among those records, so read ApplicationDisplayName and EventData before setting one aside.Worth knowing

Volume and noise

Low to medium: site owners add co-admins, and offboarding gives a manager or an admin access to a former employee's OneDrive. Records with app@sharepoint as the user can come from the creation of a Microsoft 365 group or a team, where an application sets up the site for its creator, although Microsoft does not say that this operation is written then. An admin who adds themselves to the OneDrive of a person who has not left, or to a site holding sensitive documents, without a request behind it is the record to read first. The second rule reports every addition to a OneDrive.

Keeping it manageable

  • Read ModifiedProperties for the account that was added and compare it with UserId. An admin adding themselves needs a reason, such as an offboarding ticket or a legal request.
  • Separate OneDrive (-my.sharepoint.com/personal/ in ObjectId or SiteUrl) from team sites; the first is a person's own files and deserves the higher severity.
  • Set UserId = app@sharepoint records aside once ApplicationDisplayName and EventData show group or team creation.
  • Follow the added account into the site: FileAccessed and FileDownloaded records by it in the following days show whether the access was used.

Sample event

A Microsoft 365 unified audit log (SharePoint and OneDrive) record in the vendor’s format, with made-up values.

{
  "CreationTime": "2026-11-18T09:30:12",
  "Id": "6f1c2d3e-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
  "Operation": "SiteCollectionAdminAdded",
  "OrganizationId": "00000000-0000-0000-0000-00000000c0de",
  "RecordType": 4,
  "UserKey": "10032001A2B3C4D5",
  "UserType": 2,
  "Version": 1,
  "Workload": "SharePoint",
  "ClientIP": "203.0.113.24",
  "ObjectId": "https://corpexample-my.sharepoint.com/personal/a_smith_corp_example_com",
  "UserId": "sp-admin@corp.example.com",
  "AppAccessContext": {
    "AADSessionId": "00000000-0000-0000-0000-00000000a5e5",
    "CorrelationId": "00000000-0000-0000-0000-0000000c0aa1"
  },
  "EventSource": "SharePoint",
  "ItemType": "Site",
  "Site": "00000000-0000-0000-0000-0000000517e1",
  "UserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0",
  "SiteUrl": "https://corpexample-my.sharepoint.com/personal/a_smith_corp_example_com/",
  "ModifiedProperties": [
    {
      "Name": "Site Admin",
      "NewValue": "sp-admin@corp.example.com",
      "OldValue": ""
    }
  ],
  "EventData": ""
}

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Is an admin who gives themselves access to a OneDrive recorded?

Yes. Microsoft states that SiteCollectionAdminAdded is also logged when an admin gives themselves access to a user's OneDrive, from the user profile in the SharePoint admin center or from the Microsoft 365 admin center.

Why is the user app@sharepoint?

An application with SharePoint app-only access acted on behalf of a user or admin, for example during the creation of a Microsoft 365 group or a team. Several such records within seconds usually come from one task.

References