Add `get_userinfo_by_id` method to ModuleApi.