Command
Remove-PermissionLevelMapping
Description
The command to remove a permission level mapping.
Examples
Remove mappings
# Create or update permission level mappings
$mappingSettings = Set-PermissionLevelMapping -Source "Full Control" -Destination "Full Control"
$mappingSettings = Set-PermissionLevelMapping -Source "My Custom Permission" -MappingSettings $mappingSettings -Destination "Full Control"
# Ignore the "Read" permission level
$mappingSettings = Set-PermissionLevelMapping -MappingSettings $mappingSettings -Source "Read" -Ignore
# Remove the "Full Control" mapping
$mappingSettings = Remove-PermissionLevelMapping -MappingSettings $mappingSettings -Source "Full Control"
# Display the final permission level mappings
$mappingSettings
# Output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings : My Custom Permission -> Full Control
# Read -> <NO DESTINATION>
# SiteTemplateMappings :
Syntax
Remove-PermissionLevelMapping-MappingSettings <MappingSettings> -Source <String>
Parameters
-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 permission level.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |