Note: PowerShell integration requires a ShareGate Migrate Pro or Enterprise subscription. It is not available on the Essentials plan.
Command
Remove-SensitivityLabelMapping
Description
The command to remove a sensitivity label mapping.
Examples
Remove mappings
$mappingSettings = Set-SensitivityLabelMapping -Source "ParentSL \ ChildLabel1" -Destination "ParentDestSL \ ChildDestLabel1"
$mappingSettings = Set-SensitivityLabelMapping -MappingSettings $mappingSettings -Source "ParentSL \ ChildLabel2" -Destination "ParentDestSL \ ChildDestLabel2"
$mappingSettings = Remove-SensitivityLabelMapping -MappingSettings $mappingSettings -Source "ParentSL \ ChildLabel1"
$mappingSettings
# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings : ParentSL \ ChildLabel2 -> ParentDestSL \ ChildDestLabel2
Syntax
Remove-SensitivityLabelMapping
-MappingSettings <MappingSettings>
-Source <String>
Remove-SensitivityLabelMapping
-MappingSettings <MappingSettings>
-DefaultDestinationLabel <SwitchParameter>
Parameters
-DefaultDestinationLabel <SwitchParameter>
Specifies to remove the default destination sensitivity label.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-MappingSettings <MappingSettings>
Specifies the mapping settings.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Source <String>
Specifies the source sensitivity label.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
