added getusers to the JSON API

get users which belong to specified roles