New-FASTSearchSecurityRegexAliaserPattern
Creates a new regular expression pattern for a regex principal aliaser.
Syntax
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
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.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | FAST Server for SharePoint 2010 |
-MapToUsername
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.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | FAST Server for SharePoint 2010 |
-Patterns
A list of RegExAliasPatternMapConfig objects. The RegExAliasPatternMapConfig being created is added to this list.
Type: | System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Security.Config.RegExAliasPatternMapConfig] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | FAST Server for SharePoint 2010 |
-Regex
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.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | FAST Server for SharePoint 2010 |