Implemented the function to get the installed apps given user_id.