API functionality as per [#98]

* Also resolveUser api function in user module [#98]