GetImportPendingUsers

Returns the list of “pending import” users for the zone.

Syntax

IUserInfos GetImportPendingUsers()

Return value

The collection of “pending import” user profiles for the zone.

Example

The following code sample illustrates using this method in a script:

...  
'Specify the zone you want to work with  
set objZone = cims.GetZone("ajax.org/UNIX/Zones/test_lab")  
‘Get the collection of pending users  
set objPendingUsrs = objZone.GetImportPendingUsers  
if not objPendingUsrs is nothing then  
wScript.Echo "Pending import users: ", objPendingUsrs.Count   
for each objPendingUsr in objPendingUsrs  
wScript.Echo objPendingUsr.Uid, objPendingUsr.Name  
if objPendingUsr.Source = "script file" then  
objPendingUsr.Delete  
end if  
next  
wScript.Echo ""  
end if  
...