Implement getUser API