IsOrphan

Indicates whether this UNIX user is not associated with a corresponding Active Directory user.

Syntax

bool IsOrphan {get;}

Property value

Returns true if the corresponding Active Directory user for a UNIX profile is not found, or false if the corresponding Active Directory user for the UNIX profile exists.

Discussion

This property can be used to determine whether the Active Directory user associated with a UNIX profile has been deleted from Active Directory.

Example

The following code sample illustrates using IsOrphan in a script:

...  
'Get the zone object  
Set objZone = cims.GetZone("ajax.org/UNIX/Zones/pilot")  
'Check for Orphan Users in the zone  
For each profile in objZone.GetUserUnixProfiles  
if profile.IsOrphan then  
wScript.Echo “Orphan user: ” & profile.Name  
end if  
next  
...