New-FASTSearchSecurityRegexAliaser

 

Applies to: SharePoint Server 2010

Creates a regular expression aliaser.

Syntax

New-FASTSearchSecurityRegexAliaser [-InputUserStoreId] <String> [-OutputUserStoreIds] <String[]> [-Patterns] <List> [[-Identity] <String>] [[-CaseSensitive] <$true | $false>] [[-UnicodeCaseSensitive] <$true | $false>] [-ObjectToClone <SecurityRegexAliaser>]

Detailed Description

This cmdlet creates a regular expression aliaser to map users/groups from one user store to users/groups in other user stores, based on a regular expression pattern.

Parameters

Parameter Required Type Description

InputUserStoreId

Required

System.String

The identity of the mapped-from user store.

OutputUserStoreIds

Required

System.String[]

A comma-separated list of mapped-to user store identities.

Patterns

Required

System.Collections.Generic.List

A list of RegExAliasPatternMapConfig instances containing the regular expression patterns used for the mapping.

Identity

Optional

System.String

The identity of the aliaser.

CaseSensitive

Optional

System.Boolean

Specifies whether the regular expression patterns defined in the RegExAliasPatternMapConfig list are matched based on case sensitivity matching rules. The default is true.

UnicodeCaseSensitive

Optional

System.Boolean

Specifies whether the regular expressions patterns defined in the RegExAliasPatternMapConfig list are matched based on Unicode case sensitivity matching rules.

ObjectToClone

Optional

Microsoft.SharePoint.Search.Extended.Security.PowerShell.Commands.RegexAliaser.SecurityRegexAliaser

A SecurityRegexAliaser object whose property values are used for the SecurityRegexAliaser aliaser being created.

Input Types

Return Types

Example

---------------EXAMPLE 1-----------------

New-FASTSearchSecurityRegexAliaserPattern -Regex .* -MapToUsername \1 | New-FASTSearchSecurityRegexAliaser -Identity regex1 -InputUserStoreId ln1 -OutputUserStoreIds ln2

This example creates a regular expression aliaser pattern object and pipes it into a New-FASTSearchSecurityRegexAliaser cmdlet to create a regular expression aliaser.

---------------EXAMPLE 2-----------------

New-FASTSearchSecurityRegexAliaserPattern -Regex .* -MapToUsername \1 | New-FASTSearchSecurityRegexAliaser -InputUserStoreId ln1 -OutputUserStoreIds ln2,ln3 -CaseSensitive $False -UnicodeCaseSensitive $False

This example creates a regular expression aliaser pattern object and pipes it into a New-FASTSearchSecurityRegexAliaser cmdlet to create a regular expression aliaser. The example sets the case-sensitive flags so pattern matching is performed in a case-insensitive manner. The OutputUserStoreIds parameter maps users/groups to two user stores: “ln2” and “ln3”. The example generates the aliaser identity.

See Also

Reference

Set-FASTSearchSecurityRegexAliaser
Get-FASTSearchSecurityRegexAliaser
New-FASTSearchSecurityRegexAliaserPattern