Forum Discussion
Luke_Michael_Fisher
Apr 13, 2023Brass Contributor
Is there way to bulk upload One Drive URLs into a Microsoft Purview Auto Label Policy?
When you have 60+ OneDrive accounts to add to 7+ Autolabeling policies, the single URL upload option through the GUI can become a bottleneck very quickly. Anyway to do this programmatically in Pow...
IsmKay
May 05, 2023Copper Contributor
You can use PowerShell as shown in the following example:
$odLocations = @("<OneDriveLocation1>","<OneDriveLocation2>")
Set-AutoSensitivityLabelPolicy -Identity <AutoLabelingPolicyName> -AddOneDriveLocation $odLocations -ApplySensitivityLabel <Label> -Mode TestWithoutNotifications
https://learn.microsoft.com/en-us/powershell/module/exchange/set-autosensitivitylabelpolicy?view=exchange-ps#-addonedrivelocation
Thanks and regards