GetPrimaryGroup

Returns the UNIX profile of the primary group of the user.

Syntax

IGroupUnixProfile GetPrimaryGroup(); 

Return value

The UNIX profile of the user’s primary group.

Example

The following code sample illustrates using GetPrimaryGroup 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")
'Get the UNIX profile for the user
profile = objUser.UnixProfiles
'Display the LDAP path for the user
wScript.Echo “Primary GID: “ & profile.GetPrimaryGroup().GID
...