Company-specific dimension

i am currently working on a small task which is include to restrict company (employee dimension) from other company,suppose i have two company A & B,now i want that only employee Belong to A only visible for Company A,and the same scenario for B…

for this i am usig XDs,but how to go futher…little confuesed

please guide me

Regards.

For reference, I see that the question is already discussed in another forum.