add api to get trees for users

refs #4