Command
Remove-UserAndGroupMapping
Description
The command to remove a specified user or group mapping.
Examples
Remove mappings
$mappingSettings = Set-UserAndGroupMapping -Source "John Doe" -Destination "Paul Smith"
$mappingSettings = Set-UserAndGroupMapping -MappingSettings $mappingSettings -Source "myusername" -Destination "anotherusername"
$mappingSettings = Set-UserAndGroupMapping -MappingSettings $mappingSettings -UnresolvedUserOrGroup -Destination "Old employee Group"
$mappingSettings = Remove-UserAndGroupMapping -MappingSettings $mappingSettings -Source "myusername"
$mappingSettings
PropertyMappings :
ContentTypeMappings :
UserAndGroupMappings : <Unresolved users or groups> -> Old employee group
John Doe -> Paul Smith
PermissionLevelMappings :
SiteTemplateMappings :
Syntax
Remove-UserAndGroupMapping -MappingSettings <MappingSettings> -Source <String>
Remove-UserAndGroupMapping -MappingSettings <MappingSettings> -UnresolvedUserOrGroup <SwitchParameter>
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 user or group in the source column to remove.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | Default |
Aliases | None |
-UnresolvedUserOrGroup <SwitchParameter>
Specifies to remove the user or group associated with the unresolved users or groups.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | Unresolved |
Aliases | None |