Any party to the lawsuit or anyone with information relevant to the lawsuit can be deposed.
For example, in a Palo Alto house purchase dispute, you may get deposed even if you are not the buyer or the seller. Often the real estate agents will also be deposed.
If you are facing a lawsuit related to a real estate matter, please call us at 650-327-2900 to discuss your issues.