PrimaryGroup

Gets or sets the group identifier (GID) of the primary group for the user.

Syntax

long PrimaryGroup {get; set;} 

Property value

The value used as the GID for the user’s primary group.

Discussion

This method is used internally by .NET modules.

Example

The following code sample illustrates using PrimaryGroup in a script:

...
'Get the zone object
Set objZone = cims.GetZone("ajax.org/UNIX/Zones/pilot")
'Get the Active Directory user object
set objUser = cims.GetUser("ajax.org/Users/pat.hu")
'Set the GID for the user’s primary group
Set objUser.PrimaryGroup = 490007
...