Share via


SearchForObjectByNT4Name Method

Topic Last Modified: 2006-06-13

Returns an entity object found by searching for a Microsoft® Windows NT® Security Accounts Manager (SAM)-compatible name, such as "MyDomain\User1".

Applies To

DACL Object

Syntax


objEntity  objDACL.SearchForObjectByNT4Name(strNT4Name);

Parameters

  • strNT4Name
    A string value of the domain and username of a security principal.

Return Value

A returned entity object.

Example

var objEntity = objDacl.SearchForObjectByNT4Name("MYDOMAIN\\User1");
if(null == objEntity){
    
// This user was not likely in the DACL.
}