How to restrict the company for workspace

Hai,

I have one user, here i want for that user is able to the work for two companies. So, for that i created two workspaces with same doctypes. In this doctypes i want company differently for both customers.