注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Export-PermissionLevelMapping
説明
アクセス許可レベルのマッピングをファイルにエクスポートするコマンドです。
例
カスタム マッピングをエクスポートする
# Set the permission level mapping for "Approve" -> "Full Control"
$mappingSettings = Set-PermissionLevelMapping -Source "Approve" -Destination "Full Control"
# Ignore the "Read" permission level
$mappingSettings = Set-PermissionLevelMapping -MappingSettings $mappingSettings -Source "Read" -Ignore
# Export the final permission level mappings to a local file
Export-PermissionLevelMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyPermissionLevelMappingsFileName"
移行元サイトと移行先サイトからマッピングをエクスポートする
# Connect to the source and destination sites
$srcSite = Connect-Site -Url http://myfarm1/sites/mysourcesite
$dstSite = Connect-Site -Url http://myfarm1/sites/mydestinationsite
# Retrieve the current permission level mappings
$mappingSettings = Get-PermissionLevelMapping -SourceSite $srcSite -DestinationSite $dstSite
# Export the retrieved mappings to a local file
Export-PermissionLevelMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyPermissionLevelMappingsFileName"
構文
Export-PermissionLevelMapping
-MappingSettings <MappingSettings>
[-Path <String>]
[-Overwrite <SwitchParameter>]
パラメーター
-MappingSettings <MappingSettings>
マッピング設定を指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | True (ByValue, ByPropertyName) |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-Overwrite <SwitchParameter>
ファイルが既に存在する場合に上書きすることを指定します。
必須かどうか | False |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-Path <String>
ファイルの保存先パスを指定します。
必須かどうか | False |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | PSPath |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
