IsForeign

Indicates whether the corresponding Active Directory user for a UNIX profile is in a different Active Directory forest than the forest associated with the user’s UNIX profile in the zone.

Syntax

bool IsForeign {get;}

Property value

Returns true if the UNIX profile is associated with an Active Directory user in a different forest.

Discussion

If the Active Directory user is in a different forest than the one associated with a top-level Cims object, the property returns true.

Example

The following code sample illustrates using IsForeign in a script:

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