CreateImportPendingGroup

Creates a “pending import” group in the zone.

Syntax

IGroupInfo CreateImportPendingGroup (string source, DateTime timestamp) 

Parameters

Specify the following parameters when using this method.

Parameter Data type Description

source

String

The location of the source data for the group to be imported.

timestamp

DateTime

The date and time at which the data was retrieved.

Return value

The newly created pending import group object.

Discussion

Group profiles in a “pending import” group object needed to be mapped to Active Directory groups before they can be used. Groups in this state are normally imported from NIS domains or from text files and stored temporarily either in Active Directory or XML files until they are mapped to Active Directory accounts. 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:

...
'Specify the zone you want to work with
set objZone = cims.GetZone("ajax.org/UNIX/Zones/test_lab")
'Create the Pending Import group object
set objPendGrp = objZone.CreateImportPendingGroup("script file", now) 
objPendGrp.Gid = 500
objPendGrp.Name = "users"
objPendGrp.Commit
...