Skip to content

Commit a04f78c

Browse files
authored
Merge pull request MicrosoftDocs#4852 from MicrosoftDocs/UALRetentionPolicy-chrisda
Ual retention policy chrisda
2 parents 4b3b927 + b289faf commit a04f78c

File tree

4 files changed

+1216
-0
lines changed

4 files changed

+1216
-0
lines changed
Lines changed: 290 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,290 @@
1+
---
2+
external help file: Microsoft.Exchange.TransportMailflow-Help.xml
3+
online version: https://docs.microsoft.com/powershell/module/exchange/policy-and-compliance-audit/get-unifiedauditlogretentionpolicy
4+
applicable: Office 365 Security & Compliance Center
5+
title: Get-UnifiedAuditLogRetentionPolicy
6+
schema: 2.0.0
7+
author: chrisda
8+
ms.author: chrisda
9+
ms.reviewer:
10+
monikerRange: "o365scc-ps"
11+
---
12+
13+
# Get-UnifiedAuditLogRetentionPolicy
14+
15+
## SYNOPSIS
16+
This cmdlet is available only in Office 365 Security & Compliance Center PowerShell. For more information, see [Office 365 Security & Compliance Center PowerShell](https://docs.microsoft.com/powershell/exchange/office-365-scc/office-365-scc-powershell).
17+
18+
Use the Get-UnifiedAuditLogRetentionPolicy cmdlet to view the properties of the audit log retention policies in your organization.
19+
20+
For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://docs.microsoft.com/powershell/exchange/exchange-server/exchange-cmdlet-syntax).
21+
22+
## SYNTAX
23+
24+
```
25+
Get-UnifiedAuditLogRetentionPolicy
26+
[-Operation <String>]
27+
[-RecordType <AuditRecordType>]
28+
[-RetentionDuration <UnifiedAuditLogRetentionDuration>]
29+
[-UserId <String>]
30+
[<CommonParameters>]
31+
```
32+
33+
## DESCRIPTION
34+
Audit log retention policies are used to specify a retention duration for audit logs for that are generated by admin and user activity. An audit log retention policy can specify the retention duration based on the type of audited activities, the Office 365 service that activities are performed in, or the users who performed the activities. For more information, see [Manage audit log retention policies](https://docs.microsoft.com/microsoft-365/compliance/audit-log-retention-policies).
35+
36+
You need to be assigned permissions in the Office 365 Security & Compliance Center before you can use this cmdlet. For more information, see [Permissions in Office 365 Security & Compliance Center](https://go.microsoft.com/fwlink/p/?LinkId=511920).
37+
38+
## EXAMPLES
39+
40+
### Example 1
41+
```powershell
42+
Get-UnifiedAuditLogRetentionPolicy | Sort-Object -Property Priority -Descending | Format-List Priority,Name,Description,RecordTypes,Operations,UserIds,RetentionDuration
43+
```
44+
45+
This example lists the configurable properties for all audit log retention policies in your organization. The command also lists the policies in order of highest to lowest priority.
46+
47+
### Example 2
48+
```powershell
49+
Get-UnifiedAuditLogRetentionPolicy -RecordType ExchangeItem | Format-List Name,Description,RecordTypes,Operations,UserIds,RetentionDuration,Priority
50+
```
51+
52+
This example lists the configurable properties for all audit log retention policies that apply to audit records the record type of ExchangeItem.
53+
54+
55+
## PARAMETERS
56+
57+
### -Operation
58+
The Operations parameter filters the results by the operations that are specified in the policy. For a list of the available values for this parameter, see [Audited activities](https://go.microsoft.com/fwlink/p/?LinkId=708432).
59+
60+
To enter multiple values, use the following syntax: \<value1\>,\<value2\>,...\<valueX\>. If the values contain spaces or otherwise require quotation marks, use the following syntax: "\<value1\>","\<value2\>",..."\<valueX\>".
61+
62+
```yaml
63+
Type: String
64+
Parameter Sets: (All)
65+
Aliases:
66+
Applicable: Office 365 Security & Compliance Center
67+
68+
Required: False
69+
Position: Named
70+
Default value: None
71+
Accept pipeline input: False
72+
Accept wildcard characters: False
73+
```
74+
75+
### -RecordType
76+
The RecordType parameter filters the results by the record types that are defined in the policy. Valid values are:
77+
78+
- AeD
79+
80+
- AirInvestigation
81+
82+
- ApplicationAudit
83+
84+
- AzureActiveDirectory
85+
86+
- AzureActiveDirectoryAccountLogon
87+
88+
- AzureActiveDirectoryStsLogon
89+
90+
- CRM
91+
92+
- Campaign
93+
94+
- ComplianceDLPExchange
95+
96+
- ComplianceDLPSharePoint
97+
98+
- ComplianceDLPSharePointClassification
99+
100+
- ComplianceSupervisionExchange
101+
102+
- CustomerKeyServiceEncryption
103+
104+
- DLPEndpoint
105+
106+
- DataCenterSecurityCmdlet
107+
108+
- DataGovernance
109+
110+
- DataInsightsRestApiAudit
111+
112+
- Discovery
113+
114+
- ExchangeAdmin
115+
116+
- ExchangeAggregatedOperation
117+
118+
- ExchangeItem
119+
120+
- ExchangeItemAggregated
121+
122+
- ExchangeItemGroup
123+
124+
- HRSignal
125+
126+
- HygieneEvent
127+
128+
- InformationBarrierPolicyApplication
129+
130+
- InformationWorkerProtection
131+
132+
- Kaizala
133+
134+
- LabelExplorer
135+
136+
- MIPLabel
137+
138+
- MailSubmission
139+
140+
- MicrosoftFlow
141+
142+
- MicrosoftForms
143+
144+
- MicrosoftStream
145+
146+
- MicrosoftTeams
147+
148+
- MicrosoftTeamsAdmin
149+
150+
- MicrosoftTeamsAnalytics
151+
152+
- MicrosoftTeamsDevice
153+
154+
- MicrosoftTeamsShifts
155+
156+
- MipAutoLabelExchangeItem
157+
158+
- MipAutoLabelSharePointItem
159+
160+
- MipAutoLabelSharePointPolicyLocation
161+
162+
- OfficeNative
163+
164+
- OneDrive
165+
166+
- PowerAppsApp
167+
168+
- PowerAppsPlan
169+
170+
- PowerBIAudit
171+
172+
- Project
173+
174+
- Quarantine
175+
176+
- SecurityComplianceAlerts
177+
178+
- SecurityComplianceCenterEOPCmdlet
179+
180+
- SecurityComplianceInsights
181+
182+
- SharePoint
183+
184+
- SharePointCommentOperation
185+
186+
- SharePointContentTypeOperation
187+
188+
- SharePointFieldOperation
189+
190+
- SharePointFileOperation
191+
192+
- SharePointListItemOperation
193+
194+
- SharePointListOperation
195+
196+
- SharePointSharingOperation
197+
198+
- SkypeForBusinessCmdlets
199+
200+
- SkypeForBusinessPSTNUsage
201+
202+
- SkypeForBusinessUsersBlocked
203+
204+
- Sway
205+
206+
- SyntheticProbe
207+
208+
- TeamsHealthcare
209+
210+
- ThreatFinder
211+
212+
- ThreatIntelligence
213+
214+
- ThreatIntelligenceAtpContent
215+
216+
- ThreatIntelligenceUrl
217+
218+
- WorkplaceAnalytics
219+
220+
- Yammer
221+
222+
```yaml
223+
Type: AuditRecordType
224+
Parameter Sets: (All)
225+
Aliases:
226+
227+
Required: False
228+
Position: Named
229+
Default value: None
230+
Accept pipeline input: False
231+
Accept wildcard characters: False
232+
```
233+
234+
### -RetentionDuration
235+
The RetentionDuration parameter filters the policy results by the retention duration specified in the policy. Valid values are:
236+
237+
- ThreeMonths
238+
239+
- SixMonths
240+
241+
- NineMonths
242+
243+
- TwelveMonths
244+
245+
```yaml
246+
Type: UnifiedAuditLogRetentionDuration
247+
Parameter Sets: (All)
248+
Aliases:
249+
Accepted values: ThreeMonths, SixMonths, NineMonths, TwelveMonths
250+
Applicable: Office 365 Security & Compliance Center
251+
252+
Required: False
253+
Position: Named
254+
Default value: None
255+
Accept pipeline input: False
256+
Accept wildcard characters: False
257+
```
258+
259+
### -UserId
260+
The UserIds parameter filters the policy results by the ID of the users who are specified in the policy.
261+
262+
To enter multiple values, use the following syntax: \<value1\>,\<value2\>,...\<valueX\>. If the values contain spaces or otherwise require quotation marks, use the following syntax: "\<value1\>","\<value2\>",..."\<valueX\>".
263+
264+
```yaml
265+
Type: String
266+
Parameter Sets: (All)
267+
Aliases:
268+
Applicable: Office 365 Security & Compliance Center
269+
270+
Required: False
271+
Position: Named
272+
Default value: None
273+
Accept pipeline input: False
274+
Accept wildcard characters: False
275+
```
276+
277+
### CommonParameters
278+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216).
279+
280+
## INPUTS
281+
282+
###
283+
284+
## OUTPUTS
285+
286+
###
287+
288+
## NOTES
289+
290+
## RELATED LINKS

0 commit comments

Comments
 (0)