共用方式為


New-FASTSearchSecurityRegexAliaserPattern

Creates a new regular expression pattern for a regex principal aliaser.

語法

Default (預設值)

New-FASTSearchSecurityRegexAliaserPattern
    [-Regex] <String>
    [-MapToUsername] <String>
    [[-InputPropertyName] <String>]
    [-Patterns <System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Security.Config.RegExAliasPatternMapConfig]>]
    [<CommonParameters>]

Description

This cmdlet creates a new regular expression pattern that can be added to the list of patterns for a regular expression based principal aliaser. This cmdlet creates a regular expression pattern that is used by and input to the New-FASTSearchSecurityRegexAliaser and Set-FASTSearchSecurityRegexAliaser cmdlets.

For permissions and the most current information about FAST Search Server 2010 for SharePoint cmdlets, see the online documentation, (https://go.microsoft.com/fwlink/?LinkId=163227).

範例

EXAMPLE 1 (FAST Server for SharePoint 2010)

New-FASTSearchSecurityRegexAliaserPattern -Regex .* -InputPropertyName mail -MapToUsername "\1"

This example creates a regular expression pattern that can be used to map the "mail" property of a Microsoft user store to identities in other user stores.

Use the regex pattern configuration object output from this command for the value of a pattern's parameter in a New-FASTSearchSecurityRegexAliaser or a Set-FASTSearchSecurityRegexAliaser cmdlet.

參數

-InputPropertyName

Applicable: FAST Server for SharePoint 2010

The user/group property name this regular expression pattern is matched against.

The InputPropertyName is one of the following:

-- $PRINCIPAL_REFERENCE_ID - The identifier of the user or group. This is the default. -- $PRINCIPAL_REFERENCE_ALIAS - The alias of the user or group.

Any other property of the user or group. Refer to your specific user store for other properties that the user store exposes.

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:3
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-MapToUsername

Applicable: FAST Server for SharePoint 2010

The user or group name to look to. This can also contain regular expression group replacements using the syntax:

#

where # is the group capture index.

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:2
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Patterns

Applicable: FAST Server for SharePoint 2010

A list of RegExAliasPatternMapConfig objects. The RegExAliasPatternMapConfig being created is added to this list.

參數屬性

類型:

System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Security.Config.RegExAliasPatternMapConfig]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:True
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Regex

Applicable: FAST Server for SharePoint 2010

The regular expression pattern that determines if the user or group should be mapped to another user store. This regular expression pattern may contain regular expression groups that may be used in the generation of the MapToUsername value.

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:1
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.