Zum Hauptinhalt springen

Set Permission Level Mapping

Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.

Befehl

Set-PermissionLevelMapping

Beschreibung

Der Befehl zum Hinzufügen oder Aktualisieren einer Berechtigungsstufenzuordnung in den Zuordnungseinstellungen.

Beispiele

Benutzerdefinierte Zuordnungen festlegen

# Set the permission level mapping for "My Custom Permission" -> "Full Control"
$mappingSettings = Set-PermissionLevelMapping -Source "My Custom Permission" -Destination "Full Control"

# Ignore the "Read" permission level
$mappingSettings = Set-PermissionLevelMapping -MappingSettings $mappingSettings -Source "Read" -Ignore

# Display the updated permission level mappings
$mappingSettings
# Output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings : My Custom Permission -> Full Control
# Read -> <NO DESTINATION>
# SiteTemplateMappings :
# SensitivityLabelMappings :

Benutzerdefinierte Zuordnungen auf vorhandene Zuordnungen einer Quell- und Zielliste anwenden

# 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

# 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

# Display the updated 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 -> <NO DESTINATION>
# View Only -> View Only
# SiteTemplateMappings :
# SensitivityLabelMappings :

Syntax

Set-PermissionLevelMapping-Source <String>-Destination <String>[-MappingSettings <MappingSettings>]
Set-PermissionLevelMapping-Source <String> -Ignore <SwitchParameter>[-MappingSettings <MappingSettings>]

Parameter

-Destination <String>

Gibt die Zielberechtigungsstufe an.

Erforderlich?

True

Standardwert

None

Pipelineeingabe zulässig?

False

Platzhalterzeichen zulässig?

False

Parametersatzname

Default

Aliase

None

-Ignore <SwitchParameter>

Gibt an, dass die Berechtigungsstufe ignoriert werden soll.

Erforderlich?

True

Standardwert

None

Pipelineeingabe zulässig?

False

Platzhalterzeichen zulässig?

False

Parametersatzname

ExplicitIgnoreDestination

Aliase

None

-MappingSettings <MappingSettings>

Erforderlich?

False

Standardwert

None

Pipelineeingabe zulässig?

True (ByValue, ByPropertyName)

Platzhalterzeichen zulässig?

False

Parametersatzname

(All)

Aliase

None

-Source <String>

Gibt die Quellberechtigungsstufe an.

Erforderlich?

True

Standardwert

None

Pipelineeingabe zulässig?

False

Platzhalterzeichen zulässig?

False

Parametersatzname

(All)

Aliase

None

Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.

Hat dies deine Frage beantwortet?