The proper attribute is `pw_gid`.