NetUserEnum or Net32UserEnum

The NetUserEnum API returns information about all accounts on a server. For DSS, the set of users returned depends on the scope of the cell.