Command
Export-TenantUserMappings
Description
The command to export an XLSX user mappings file based on your source and destination tenant users.
Note: If identical users are found in both the source and destination tenant, they're paired side by side in the resulting XLSX file. Users with no match in the destination tenant must be mapped manually.
Index
Examples
Export all users from a source and destination tenant
$sourceTenant = Connect-Tenant -Domain sourceTenantDomain
$destinationTenant = Connect-Tenant -Domain destinationTenantDomain
Export-TenantUserMappings -SourceTenant $sourceTenant -DestinationTenant $destinationTenant -Path "C:\MyMappings\MyUsersMappings"
Syntax
Export-TenantUserMappings-SourceTenant <Tenant>-DestinationTenant <Tenant>-Path <String> [-Overwrite <SwitchParameter>]
Parameters
-DestinationTenant <Tenant>
Specifies the destination tenant.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Overwrite <SwitchParameter>
Specifies the file that will be overwritten if already exists.
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Path <String>
Specifies the path where you want to save the XLSX file.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-SourceTenant <Tenant>
Specifies the source tenant.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |