The /environments/{envID}/users?filter=memberOfGroups[id eq "{groupID}"] and memberOfGroups[id eq "{groupID2}"] operation returns all users that are members of both specified groups. You can use the SCIM filter memberOfGroups[id eq "{groupID}"] as many times as needed, connected with and, within the request.

For more information about groups, see Groups.