Overview
Returns an identity on specified path. If no identity is matched returns null.Identity $Membership.FindIdentity(path: string, type: string)
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.
Example
Find Uservar user = $Membership.FindIdentity('elton.john');
Example
Find Groupvar group = $Membership.FindIdentity('Developers','Group');
Example
Find Organization Unitvar orgUnit = $Membership.FindIdentity('General Management\\Accounting','OrganizationUnit');
Examples
Find Uservar user = $Membership.FindIdentity('elton.john');
var group = $Membership.FindIdentity('Developers','Group');
var orgUnit = $Membership.FindIdentity('General Management\\Accounting','OrganizationUnit');