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


IGroupUnixProfile GetPrimaryGroup(); 

Return value

The UNIX profile of the user’s primary group.


The following code sample illustrates using GetPrimaryGroup in a script:

'Get the zone object
Set objZone = cims.GetZone("")
'Get the Active Directory user object
set objUser = cims.GetUser("")
'Get the UNIX profile for the user
profile = objUser.UnixProfiles
'Display the LDAP path for the user
wScript.Echo “Primary GID: “ & profile.GetPrimaryGroup().GID