by Sumit Tayal.
Thanks, Tim for pointing out the direction.
Managed to get it working by providing the following permission to Webservice User
moodle/user:viewalldetails