canada
It depends on the right. See Quebec (Attorney General) v. 9147-0732 Québec inc., 2020 SCC 32:
To claim protection under the Charter, a corporation ⸺ indeed, any claimant ⸺ must establish that "it has an interest falling within the scope of the guarantee, and one which accords with the purpose of that provision."
Regarding section 12 (right to be free from cruel and unusual treatment or punishment):
the text “cruel and unusual” denotes protection that “only human beings can enjoy”
Regarding section 7 (right not to be deprived of life, liberty, or security of the person other than in accordance with principles of fundamental justice):
A plain, common sense reading of the phrase “Everyone has the right to life, liberty and security of the person” serves to underline the human element involved; only human beings can enjoy these rights.
But, regarding section 8 (right to be free from unreasonable search or seizure):
the Court accepted, without discussion or explanation, that the s. 8 right to be secure against unreasonable search or seizure could apply to corporations.
And section 11(b):
the Court extended the s. 11(b) right to be tried within a reasonable time to corporations on the basis that any accused, corporate or human, has, as Stevenson J. said, “a legitimate interest in being tried within a reasonable time”