Skip to content

Commit 1254be8

Browse files
committed
Examples
1 parent d6ae845 commit 1254be8

File tree

2 files changed

+38
-6
lines changed

2 files changed

+38
-6
lines changed

exchange/exchange-ps/exchange/New-DlpComplianceRule.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,32 @@ New-DLPComplianceRule -Name "Contoso Rule 1" -Policy "Contoso Policy 1" -Advance
305305

306306
This example uses the AdvancedRule parameter to read the following complex condition from a file: "Content contains sensitive information: "Credit card number OR Highly confidential" AND (NOT (Sender is a member of "Jane's Team" OR Recipient is "adele@contoso.com")).
307307

308+
### Example 4
309+
```powershell
310+
$locations = '[{"Workload":"Applications","Location":"83ef198a-0396-4893-9d4f-d36efbffc8bd","LocationDisplayName":"Purview API Explorer","LocationSource":"Entra","LocationType":"Individual","Inclusions":[{"Type":"Tenant","Identity":"All"}]}]'
311+
312+
New-DlpCompliancePolicy -Name "Test Risky user Entra DLP Policy" -Mode Enable -Locations $locations
313+
314+
New-DlpComplianceRule -Name "Test Risky User Entra DLP Rule" -Policy "Test Risky user Entra DLP Policy" -SharedByIRMUserRisk @("FCB9FA93-6269-4ACF-A756-832E79B36A2A") -RestrictAccess @(@{setting="UploadText";value="Block"}) -GenerateAlert $true -GenerateIncidentReport @("siteadmin") -NotifyUser @("kyra@contoso.onmicrosoft.com")
315+
```
316+
317+
This is an example of a risky user indicator rule.
318+
319+
### Example 5
320+
```powershell
321+
$myEntraAppId = "72e39dca-38f3-4814-b93b-a7ed0a5a4b74"
322+
323+
$myEntraAppName = "Contoso Demo"
324+
325+
$locations = '[{"Workload":"Applications","Location":$myEntraAppId,"LocationDisplayName":$myEntraAppName,"LocationSource":"Entra","LocationType":"Individual","Inclusions":[{"Type":"Tenant","Identity":"All"}]}]'
326+
327+
New-DlpCompliancePolicy -Name "Entra DLP Policy for CC" -Mode Enable -Locations $locations
328+
329+
New-DlpComplianceRule -Name "Entra DLP Rule for CC" -Policy "Entra DLP Rule for CC" -ContentContainsSensitiveInformation @{Name = "credit card number"} -GenerateAlert $true -GenerateIncidentReport @("siteadmin") -NotifyUser @("arpitha@contonso.onmicrosoft.com" )-RestrictAccess @(@{setting="UploadText";value="Block"})
330+
```
331+
332+
This is an example of a CCSI rule.
333+
308334
## PARAMETERS
309335

310336
### -Name
@@ -3344,11 +3370,11 @@ Accept wildcard characters: False
33443370
```
33453371

33463372
### -SharedByIRMUserRisk
3347-
The SharedByIRMUserRisk paramter specifies the risk category of the user performing the violating action. Valid values are:
3373+
The SharedByIRMUserRisk parameter specifies the risk category of the user performing the violating action. Valid values are:
33483374

3349-
- Elevated Risk Level
3350-
- Moderate Risk Level
3351-
- Minor Risk Level
3375+
- FCB9FA93-6269-4ACF-A756-832E79B36A2A (Elevated Risk Level)
3376+
- 797C4446-5C73-484F-8E58-0CCA08D6DF6C (Moderate Risk Level)
3377+
- 75A4318B-94A2-4323-BA42-2CA6DB29AAFE (Minor Risk Level)
33523378

33533379
You can specify multiple values separated by commas.
33543380

exchange/exchange-ps/exchange/Set-DlpComplianceRule.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ This example modifies the access scope and blocking behavior of a DLP compliance
187187

188188
### Example 2
189189
```powershell
190-
Contents of the file named C:\Data\Sensitive Type.txt:
190+
# Contents of the file named C:\Data\Sensitive Type.txt:
191191
192192
{
193193
"Version": "1.0",
@@ -3237,7 +3237,13 @@ Accept wildcard characters: False
32373237
```
32383238

32393239
### -SharedByIRMUserRisk
3240-
{{ Fill SharedByIRMUserRisk Description }}
3240+
The SharedByIRMUserRisk parameter specifies the risk category of the user performing the violating action. Valid values are:
3241+
3242+
- FCB9FA93-6269-4ACF-A756-832E79B36A2A (Elevated Risk Level)
3243+
- 797C4446-5C73-484F-8E58-0CCA08D6DF6C (Moderate Risk Level)
3244+
- 75A4318B-94A2-4323-BA42-2CA6DB29AAFE (Minor Risk Level)
3245+
3246+
You can specify multiple values separated by commas.
32413247

32423248
```yaml
32433249
Type: MultiValuedProperty

0 commit comments

Comments
 (0)