California Civil Code Section 1559
Civil Code section 1559 provides: "A contract, made expressly for the benefit of a third person, may be enforced by him at any time before the parties thereto rescind it."
In California Emergency Physicians Medical Group v. PacifiCare of California (2003) 111 Cal.App.4th 1127, the court explained:
" 'A third party may qualify as a beneficiary under a contract where the contracting parties must have intended to benefit that third party and such intent appears on the terms of the contract. However, it is well settled that Civil Code section 1559 excludes enforcement of a contract by persons who are only incidentally or remotely benefited by it. " 'A third party should not be permitted to enforce covenants made not for his benefit, but rather for others. He is not a contracting party; his right to performance is predicated on the contracting parties' intent to benefit him . . . .' " ' " (111 Cal.App.4th at pp. 1137-1138.)