Actually I worked for A (client) under B (3rd party payroll). My employee technically would be B as they did my payroll. One thing I just saw is that in the offer letter I got from B, they do mention my starting designation and the client company name, if that's any consolation.