You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
32
32
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).
34
34
35
35
## EXAMPLES
36
36
37
37
### Example 1
38
38
```powershell
39
-
Invoke-ComplianceSecurityFilterAction -Action GetStatus -PropertyName Department -SiteUrl https://contoso-my.sharepoint.com/personal/lila_contoso_onmicrosoft_com/_layouts/15/onedrive.aspx
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.
43
52
44
53
### Example 2
45
54
```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
47
56
```
48
57
49
58
This example sets the boundary of the specified OneDrive site for a user who left the company.
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:
74
83
75
-
- Alias
76
-
- Company
77
-
- CountryOrRegion
78
84
- CustomAttribute1 to CustomAttribute15
79
-
- Department
80
-
- PostalCode
81
85
82
86
Use the PropertyValue parameter to set the compliance boundary.
0 commit comments