...
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.
Example
...
Code Block | ||
---|---|---|
| ||
var user = $Membership.FindIdentity('elton.john'); |
Example
...
Code Block | ||
---|---|---|
| ||
var group = $Membership.FindIdentity('Developers','Group'); |
Example
...
Code Block | ||
---|---|---|
| ||
var orgUnit = $Membership.FindIdentity('General Management\\Accounting','OrganizationUnit'); |
...
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'); |
Example
Find Group
Code Block | ||
---|---|---|
| ||
var group = $Membership.FindIdentity('Developers','Group'); |
Info |
---|
When specifying organization unit path, either "\\" or "/" is valid. |
Example
Find Organization Unit
Code Block | ||
---|---|---|
| ||
var orgUnit = $Membership.FindIdentity('General Management\\Accounting','OrganizationUnit'); |
Types
IdentityType
...