NetGroupGetUsers or Net32GroupGetUsers

The NetGroupGetUsers API returns a list of the members to a particular group in the user accounts subsystem (UAS) database. Functionally, this API is similar to the Enum API because it enumerates the users in a group. (See Group - NetGroupEnum for related information.)