Platform SDK: Active Directory, ADSI, and Directory Services

Primary Group ID

An integer value represents the primary group ID for this user.

Set usr = GetObject("WinNT://Fabrikam/JSmith")
Debug.Print usr.Get("PrimaryGroupID")