Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.
Befehl
Import-PermissionLevelMapping
Beschreibung
Der Befehl zum Importieren der Berechtigungsstufenzuordnungen aus einer Datei.
Beispiele
Zuordnungen aus Datei importieren
# Import permission level mappings from the specified file
$mappingSettings = Import-PermissionLevelMapping -Path "C:\MyMappings\MyPermissionLevelMappingsFileName.sgrm"
# Display the imported mappings
$mappingSettings
# Output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings : Approve -> Approve
# Contribute -> Contribute
# Design -> Design
# Full Control -> Full Control
# My Custom Permission -> <NO DESTINATION>
# Read -> Read
# View Only -> View Only
# SiteTemplateMappings :
# SensitivityLabelMappings :
Zuordnungen mit Zuordnungen aus einer Datei zusammenführen
# Map "My Custom Permission" to "Full Control"
$mappingSettings = Set-PermissionLevelMapping -Source "My Custom Permission" -Destination "Full Control"
# Import additional permission level mappings from the specified file, merging with the current settings
$mappingSettings = Import-PermissionLevelMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyPermissionLevelMappingsFileName.sgrm"
# Display the final permission level mappings
$mappingSettings
# Output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings : Approve -> Approve
# Contribute -> Contribute
# Design -> Design
# Full Control -> Full Control
# My Custom Permission -> Full Control
# Read -> Read
# View Only -> View Only
# SiteTemplateMappings :
# SensitivityLabelMappings :
Syntax
Import-PermissionLevelMapping
-Path <String>
[-MappingSettings <MappingSettings>]
Parameter
-MappingSettings <MappingSettings>
Gibt die Zuordnungseinstellungen an. Mit diesem Befehl können einem vorhandenen Zuordnungseinstellungsobjekt mehrere Zuordnungseinstellungen hinzugefügt werden. Weitere Informationen finden Sie unter Mehrere Zuordnungsdateien gleichzeitig verwenden.
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | True (ByValue, ByPropertyName) |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-Path <String>
Gibt den Dateipfad an, der zuvor mit ShareGate exportiert wurde.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | PSPath |
Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.
