Tag: ShowUnifiedLogs
ShowUnifiedLogs opens the Unified Audit Logs module, which retrieves records from the Microsoft 365 unified audit log.
<ShowUnifiedLogs/>
Tag Attributes
|
Attributes |
Attribute Value |
Comment |
|---|---|---|
|
KeepAlive |
TRUE / FALSE |
Controls whether the window stays open. |
|
FrameId |
Unique identifier of the frame |
Reuses the frame if it already exists, creates it otherwise. |
|
StartDate |
A date and time in ISO 8601 format |
Start of the range, used with EndDate. The range must be within the last year and at most 180 days long. Without StartDate and EndDate, the last 180 days are loaded. |
|
EndDate |
A date and time in ISO 8601 format |
End of the range. |
|
FreeText |
Text |
Keyword search. |
|
RecordType |
One audit record type, for example SharePointFileOperation |
Empty or omitted: all record types. |
|
Operations |
Semicolon-separated activity names, for example FileDeleted;FileMoved |
Activities to retrieve. |
|
userIds |
Semicolon-separated user IDs, usually user principal names |
Retrieves only the records of activities performed by these users. |
|
siteIds |
Semicolon-separated SharePoint site IDs (GUIDs) |
Retrieves only the records about these sites. |
|
objectIds |
Semicolon-separated object IDs, for example file URLs |
Retrieves only the records about these target objects. |
|
HighCompleteness |
TRUE / FALSE |
When available in the tenant, gives more complete results but takes longer. |
|
MaxItems |
Number |
Maximum number of records to load. |
Example Script
<ytriaAutomation Application="sapio365">
<ShowUnifiedLogs StartDate="2026-10-01T00:00:00Z" EndDate="2026-10-15T00:00:00Z" RecordType="SharePointFileOperation" Operations="FileDeleted;FileMoved" userIds="AnnaL@contoso.onmicrosoft.com" MaxItems="5000"/>
</ytriaAutomation>