If the amount you are seeking is less than $10,000, you can sue in small claims court. Read How do I Sue in Small Claims Court.
If you decide to sue, you must name the owner and/or manager or person to whom you paid rent as the “defendant.” If you cannot find out who owns the place, try calling a title insurance company - you can find listings online - or the county assessor’s office to ask for the name and address of the owner of the property you rented.
Before deciding to sue, talk with a lawyer to understand the risks and benefits of filing a lawsuit. See below. You might win and get your deposit back. On the other hand, even though you file the case, the court might agree with your former landlord that you owe money. A court could enter a judgment (court order) against you. Some of your income and resources could be taken.