New-FASTSearchSecurityRegexAliaserPattern
Creates a new regular expression pattern for a regex principal aliaser.
Syntax
Default (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).
Examples
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.
Parameters
-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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 3 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Patterns
Applicable: FAST Server for SharePoint 2010
A list of RegExAliasPatternMapConfig objects. The RegExAliasPatternMapConfig being created is added to this list.
Parameter properties
Type: | System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Security.Config.RegExAliasPatternMapConfig] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.