GetImportPendingUser

Returns an individual “pending import” user with the specified ID in the zone.

Syntax

IUserInfo GetImportPendingUser(string id)

Parameter

Specify the following parameter when using this method:

Parameter Description
id The GUID of the “pending import” user profile for which you want to retrieve information.

Return value

The UserInfo object for the specified ID in the zone.

Discussion

User profiles that are “pending import” are normally imported from NIS domains or from text files and not yet mapped to Active Directory users. For more information about importing and mapping groups, see the Administrator’s Guide for Linux and UNIX.

Example

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

...  
// Get the user object
IUser objUser = cims.GetUserByPath(strUser);  
// Get the zone object
IZone objZone = cims.GetZoneByPath("cn=" + strZone + "," + strContainerDN);  
Import.IUserInfo objUserInfo = objZone.GetImportPendingUser(strUserInfo);  
if (objUser == null)  
{  
    Console.WriteLine("User " + strUser + " does not exist.");  
}  
else  
{  
    objUserInfo.Import(objUser);  
}  
...