Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

Remarks

Path and Type arguments may be one of following values

Example

Find User

var user = $Membership.FindIdentity('elton.john');

Example

Find Group

var group = $Membership.FindIdentity('Developers','Group');

Example

Find Organization Unit

var orgUnit = $Membership.FindIdentity('General Management\\Accounting','OrganizationUnit');

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');
  • No labels