You would have to write this since it does not exist in core Moodle. If you have doubts on how to proceed ask here.
General developer forum
Web service that returns current user's profile
This discussion has been locked so you can no longer reply to it.