Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.
Befehl
Save-PermissionLevelMapping
Beschreibung
Der Befehl zum Speichern aller Berechtigungsstufenzuordnungen für eine bestimmte Quell- und Zielsite.
Beispiele
Benutzerdefinierte Zuordnungen für eine Quellliste und eine Zielliste speichern
# 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
# Display the retrieved 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 :
# Map "My Custom Permission" to "Full Control"
$mappingSettings = Set-PermissionLevelMapping -MappingSettings $mappingSettings -Source "My Custom Permission" -Destination "Full Control"
# Ignore the "Read" permission level
$mappingSettings = Set-PermissionLevelMapping -MappingSettings $mappingSettings -Source "Read" -Ignore
# Save the updated permission level mappings
$mappingSettings = Save-PermissionLevelMapping -MappingSettings $mappingSettings -SourceSite $srcSite -DestinationSite $dstSite
# Retrieve and display the updated mappings
$mappingSettings = Get-PermissionLevelMapping -SourceSite $srcSite -DestinationSite $dstSite
$mappingSettings
# Output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings : Approve -> Approve
# Contribute -> Contribute
# Design -> Design
# Full Control -> Full Control
# My Custom Permission -> Full Control
# Read -> <NO DESTINATION>
# View Only -> View Only
# SiteTemplateMappings :
# SensitivityLabelMappings :
Syntax
Save-PermissionLevelMapping
-MappingSettings <MappingSettings>
-SourceSite <Site>
-DestinationSite <Site>
Save-PermissionLevelMapping
-MappingSettings <MappingSettings>
-FromFileSystem <SwitchParameter>
-DestinationSite <Site>
Parameter
-DestinationSite <Site>
Gibt die Ziel-Site an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-FromFileSystem <SwitchParameter>
Gibt an, dass die Quelle das Dateisystem ist.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | FileSystem |
Aliase | None |
-MappingSettings <MappingSettings>
Gibt die Zuordnungseinstellungen an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | True (ByValue, ByPropertyName) |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-SourceSite <Site>
Gibt die Quell-Site an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | Default |
Aliase | None |
Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.
