Name
Import-UserAndGroupMapping
SYNTAX
Import-UserAndGroupMapping [-Path] <String> [[-MappingSettings] <MappingSettings>]
DESCRIPTION
The command to import the user and group mappings from a file.
PARAMETERS
-MappingSettings <MappingSettings>
Specifies the mapping settings.
Required? | False |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Path <String>
Specifies the file path that was previously exported with Sharegate.
Required? | True |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | PSPath |
INPUTS
MappingSettings
OUTPUTS
MappingSettings
The mapping settings merged with the import user and group mappings from a file.
EXAMPLES
-------------- Example: Import mappings from file --------------
$mappingSettings = Import-UserAndGroupMapping -Path C:\MyMappings\MyUserAndGroupMappingsFileName.sgum $mappingSettings PropertyMappings : ContentTypeMappings : UserAndGroupMappings : CustomPermissions Members -> Sales&Marketing Owners i:0#.w|office\sg.achille -> i:0#.w|office\sg.baptiste i:0#.w|office\sg.camille -> i:0#.w|office\sg.denis PermissionLevelMappings : SiteTemplateMappings :
-------------- Example: Merge mappings with mappings from file --------------
$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 = Import-UserAndGroupMapping -MappingSettings $mappingSettings -Path C:\MyMappings\MyUserAndGroupMappingsFileName.sgum $mappingSettings PropertyMappings : ContentTypeMappings : UserAndGroupMappings : <Unresolved users or groups> -> Old employee Group CustomPermissions Members -> Sales&Marketing Owners i:0#.w|office\sg.achille -> i:0#.w|office\sg.baptiste i:0#.w|office\sg.camille -> i:0#.w|office\sg.denis John Doe -> Paul Smith myusername -> anotherusername PermissionLevelMappings : SiteTemplateMappings :
How can we improve this article?
0 comments
Article is closed for comments.