Get active users - via API

I think using a data explorer query would be the easiest way to get the whole user list.