Skip to content

Commit 78c1709

Browse files
committed
Update Invoke-ComplianceSecurityFilterAction.md
1 parent 2217b14 commit 78c1709

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

exchange/exchange-ps/exchange/Invoke-ComplianceSecurityFilterAction.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,29 @@ Invoke-ComplianceSecurityFilterAction [-Action] <String> [-PropertyName] <String
3030
## DESCRIPTION
3131
This cmdlet is useful in scenarios where the OneDrive site has fallen out of the compliance boundary due to a departed user and a corresponding inactive mailbox.
3232

33-
To use this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions. For more information, see [Permissions in the Microsoft Purview compliance portal](https://learn.microsoft.com/purview/microsoft-365-compliance-center-permissions).
33+
To use this cmdlet in Security & Compliance PowerShell, you need to be a member of the Compliance Administrator role group. For more information, see [Permissions in the Microsoft Purview compliance portal](https://learn.microsoft.com/purview/microsoft-365-compliance-center-permissions).
3434

3535
## EXAMPLES
3636

3737
### Example 1
3838
```powershell
39-
Invoke-ComplianceSecurityFilterAction -Action GetStatus -PropertyName Department -SiteUrl https://contoso-my.sharepoint.com/personal/lila_contoso_onmicrosoft_com/_layouts/15/onedrive.aspx
39+
PS C:\> Invoke-ComplianceSecurityFilterAction -Action GetStatus -PropertyName CustomAttribute1 -SiteUrl https://contoso-my.sharepoint.com/personal/lila_contoso_onmicrosoft_com/_layouts/15/onedrive.aspx
40+
41+
SiteUrl : https://contoso-my.sharepoint.com/personal/lila_contoso_onmicrosoft_com/_layouts/15/onedrive.aspx
42+
BoundaryType : UserMailbox
43+
BoundaryInstruction : Set via Set-Mailbox
44+
BoundaryObjectId : SPO_f82ace6e-817e-4752-8917-67164dabde98@SPO_775ea11f-a2af-7821-b04c-9848e903ce47
45+
BoundaryStatus : Success
46+
BoundaryProperty : CustomAttribute1
47+
BoundaryPropertyValue :
48+
4049
```
4150

42-
This example returns the status of a OneDrive site that's bound by the Department property on the user's mailbox.
51+
This example returns the status of a OneDrive site that's bound by the CustomAttribute1 property on the user's mailbox.
4352

4453
### Example 2
4554
```powershell
46-
Invoke-ComplianceSecurityFilterAction -Action Set -PropertyName Department -PropertyValue "Research and Development" -SiteUrl https://contoso-my.sharepoint.com/personal/lila_contoso_onmicrosoft_com/_layouts/15/onedrive.aspx
55+
Invoke-ComplianceSecurityFilterAction -Action Set -PropertyName CustomAttribute1 -PropertyValue "Research and Development" -SiteUrl https://contoso-my.sharepoint.com/personal/lila_contoso_onmicrosoft_com/_layouts/15/onedrive.aspx
4756
```
4857

4958
This example sets the boundary of the specified OneDrive site for a user who left the company.
@@ -72,12 +81,7 @@ Accept wildcard characters: False
7281
### -PropertyName
7382
The PropertyName parameter specifies the name of the property of the compliance boundary for the OneDrive site that you want to view or modify. Valid values are:
7483
75-
- Alias
76-
- Company
77-
- CountryOrRegion
7884
- CustomAttribute1 to CustomAttribute15
79-
- Department
80-
- PostalCode
8185
8286
Use the PropertyValue parameter to set the compliance boundary.
8387

0 commit comments

Comments
 (0)