Skip to content

Commit 0382830

Browse files
authored
Merge pull request #12455 from MicrosoftDocs/DLP-chrisda
DLP-chrisda to Main
2 parents e6e1e5f + e128d4b commit 0382830

File tree

2 files changed

+97
-3
lines changed

2 files changed

+97
-3
lines changed

exchange/exchange-ps/exchange/New-DlpCompliancePolicy.md

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,67 @@ New-DlpCompliancePolicy -Name "GlobalPolicy" -Comment "Primary policy" -SharePoi
8888
This example creates a DLP policy named GlobalPolicy for the specified SharePoint Online and OneDrive for Business locations. The new policy has a descriptive comment and will be enabled on creation.
8989

9090
### Example 3
91-
9291
```powershell
9392
New-DlpCompliancePolicy -Name "PowerBIPolicy" -Comment "Primary policy" -PowerBIDlpLocation "All" -PowerBIDlpLocationException "workspaceID1","workspaceID2","workspaceID3" -Mode Enable
9493
```
9594

9695
This example creates a DLP policy named PowerBIPolicy for all qualifying Power BI workspaces (that is, those hosted on Premium Gen2 capacities) except for the specified workspaces. The new policy has a descriptive comment and will be enabled on creation.
9796

97+
### Example 4
98+
```powershell
99+
Get-Label | Format-List Priority,ContentType,Name,DisplayName,Identity,Guid
100+
101+
$guidVar = "e222b65a-b3a8-46ec-ae12-00c2c91b71c0"
102+
103+
$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","Inclusions":[{Type:"Tenant", Identity:"All"}]}]"
104+
105+
New-DLPCompliancePolicy -Name "Copilot Policy" -Locations $loc
106+
107+
$advRule = @{
108+
"Version" = "1.0"
109+
"Condition" = @{
110+
"Operator" = "And"
111+
"SubConditions" = @(
112+
@{
113+
"ConditionName" = "ContentContainsSensitiveInformation"
114+
"Value" = @(
115+
@{
116+
"groups" = @(
117+
@{
118+
"Operator" = "Or"
119+
"labels" = @(
120+
@{
121+
"name" = $guidVar
122+
"type" = "Sensitivity"
123+
}
124+
)
125+
"name" = "Default"
126+
}
127+
)
128+
}
129+
)
130+
}
131+
)
132+
}
133+
} | ConvertTo-Json -Depth 100
134+
135+
New-DLPComplianceRule -Name "Copilot Rule" -Policy "Copilot Policy" -AdvancedRule $advrule -RestrictAccess @(@{setting="ExcludeContentProcessing";value="Block"})
136+
```
137+
138+
This example creates a DLP policy for Microsoft 365 Copilot (Preview) in several steps:
139+
140+
- The first command returns information about all sensitivity labels. Select the GUID value of the sensitivity label that you want to use. For example, `e222b65a-b3a8-46ec-ae12-00c2c91b71c0`.
141+
142+
- The second command stores the GUID value of the sensitivity label in the variable named `$guidVar`.
143+
144+
- The third command stores the Microsoft 365 Copilot location (`470f2276-e011-4e9d-a6ec-20768be3a4b0`) in the variable named `$loc`. Update the `$loc` value based on the Inclusions/Exclusions scoping that you want to provide.
145+
146+
- The fourth command creates the DLP policy using the `$loc` variable for the value of the Locations parameter, and "Copilot Policy" as the name of the policy (use any unique name).
147+
148+
- The fifth command creates the variable named `$advRule`. The advanced rule needs to be updated depending on the grouping of labels you want to provide as input.
149+
150+
- The last command creates the DLP rule with the name "Copilot Rule" (use any unique name). Use the name of the DLP policy from step four as the value of the Policy parameter.
151+
98152
## PARAMETERS
99153

100154
### -Name
@@ -427,7 +481,28 @@ Accept wildcard characters: False
427481
```
428482

429483
### -Locations
430-
{{ Fill Locations Description }}
484+
The Locations parameter specifies to whom, what, and where the DLP policy applies. This parameter uses the following properties:
485+
486+
- Workload: What the DLP policy applies to. Use the value `Applications`.
487+
- Location: Where the DLP policy applies. For Microsoft 365 Copilot, (Preview), use the value `470f2276-e011-4e9d-a6ec-20768be3a4b0`.
488+
- Inclusions: Who the DLP policy applies to. For users, use the email address in this syntax: `{Type:IndividualResource,Identity:<EmailAddress>}`. For security groups or distribution groups, use the ObjectId value of the group from the Microsoft Entra portal in this syntax: `{Type:Group,Identity:<ObjectId>}`. For the entire tenant, use this value: `{Type:"Tenant",Identity:"All"}`.
489+
- Exclusions: Exclude security groups, distribution groups, or users from the scope of this DLP policy. For users, use the email address in this syntax: `{Type:IndividualResource,Identity:<EmailAddress>}`. For groups, use the ObjectId value of the group from the Microsoft Entra portal in this syntax: `{Type:Group, Identity:<ObjectId>}`.
490+
491+
You create and store the properties in a variable as shown in the following examples:
492+
493+
DLP policy scoped to all users in the tenant:
494+
495+
`$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","Inclusions":[{Type:"Tenant",Identity:"All"}]}]"`
496+
497+
DLP policy scoped to the specified user and groups:
498+
499+
`$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","Inclusions":[{"Type":"Group","Identity":"fef0dead-5668-4bfb-9fc2-9879a47f9bdb"},{"Type":"Group","Identity":"b4dc1e1d-8193-4525-b59c-6d6e0f1718d2"},{"Type":"IndividualResource","Identity":"[email protected]"}]}]"`
500+
501+
DLP policy scoped to all users in the tenant except for members of the specified group:
502+
503+
`$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","Inclusions":[{Type:"Tenant",Identity:"All"}]}],"Exclusions":[{"Type":"Group","Identity":"fef0dead-5668-4bfb-9fc2-9879a47f9bdb"}]}]"`
504+
505+
After you create the `$loc` variable as shown in the previous examples, use the value `$loc` for this parameter.
431506

432507
```yaml
433508
Type: String

exchange/exchange-ps/exchange/Set-DlpCompliancePolicy.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,26 @@ Accept wildcard characters: False
743743
```
744744

745745
### -Locations
746-
{{ Fill Locations Description }}
746+
The Locations parameter specifies to whom, what, and where the DLP policy applies. This parameter uses the following properties:
747+
748+
- AddInclusions or RemoveInclusions: Add or remove security groups, distribution groups, or users to or from the scope of this DLP policy. For users, use the email address in this syntax: `{Type:IndividualResource,Identity:<EmailAddress>}`. For security groups or distribution groups, use the ObjectId value of the group from the Microsoft Entra portal in this syntax: `{Type:Group,Identity:<ObjectId>}`.
749+
- AddExclusions or RemoveExclusions: Add or remove security groups, distribution groups, or users to or from exclusions to the scope of this DLP policy. For users, use the email address in this syntax: `{Type:IndividualResource,Identity:<EmailAddress>}`. For security groups or distribution groups, use the ObjectId value of the group from the Microsoft Entra portal in this syntax: `{Type:Group,Identity:<ObjectId>}`.
750+
751+
You create and store the properties in a variable as shown in the following examples:
752+
753+
DLP policy scoped to all users in the tenant:
754+
755+
`$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","AddInclusions":[{Type:"Tenant",Identity:"All"}]}]"`
756+
757+
DLP policy scoped to the specified user and groups:
758+
759+
`$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","AddInclusions":[{"Type":"Group","Identity":"fef0dead-5668-4bfb-9fc2-9879a47f9bdb"},{"Type":"Group","Identity":"b4dc1e1d-8193-4525-b59c-6d6e0f1718d2"},{"Type":"IndividualResource","Identity":"[email protected]"}]}]"`
760+
761+
DLP policy scoped to all users in the tenant except for members of the specified group:
762+
763+
`$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","AddInclusions":[{Type:"Tenant",Identity:"All"}],"AddExclusions": [{"Type":"Group","Identity":"fef0dead-5668-4bfb-9fc2-9879a47f9bdb"},{"Type":"Group","Identity":"b4dc1e1d-8193-4525-b59c-6d6e0f1718d2"}]}]`
764+
765+
After you create the `$loc` variable as shown in the previous examples, use the value `$loc` for this parameter.
747766

748767
```yaml
749768
Type: String

0 commit comments

Comments
 (0)