...
Identity $Membership.FindIdentity(path: string, type: stringIdentityType)
Arguments
string path
Specifies the path of identity depending on identity type.
string IdentityType 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
User : Logon id of user. Ex: "John.doe"
Group : Name of group. Ex: "Developers"
OrganizationUnit : Qualified path of organization unit. Ex: "General Management\Accounting"
Example
Find User
Code Block | ||
---|---|---|
| ||
var user = $Membership.FindIdentity('elton.john'); |
...
Code Block | ||
---|---|---|
| ||
var orgUnit = $Membership.FindIdentity('General Management\\Accounting','OrganizationUnit'); |
Types
IdentityType
...