$Membership.FindIdentity
Overview¶
Identity $Membership.FindIdentity ( path, [ type ] )
Returns an identity on specified path. If no identity is matched returns null.
Arguments¶
String path Specifies the path of identity depending on identity type.
String type Specifies the type of identity to be found. If not specified "User" type is used.
Remarks¶
Path and Type arguments may be one of following values
Type | Path |
---|---|
User | Logon id of user. Ex: "john.doe" |
Group | Name of group. Ex: "Developers" |
Organization Unit | Qualified path of organization unit. Ex: "General Management\Accounting" |
Examples¶
Find User
var user = $Membership.FindIdentity('elton.john');
Find Group
var group = $Membership.FindIdentity('Developers','Group');
Find Organization Unit
var orgUnit = $Membership.FindIdentity('General Management\\Accounting','OrganizationUnit');