You Do Not Need to Be on the Lease to Be Protected From an Illegal Lockout

By FightLandlords
You Do Not Need to Be on the Lease to Be Protected From an Illegal Lockout

Here's a belief that leaves a lot of people dangerously exposed: that only someone whose name is on a lease has rights against being thrown out of their home. The roommate who moved in but was never added to the lease. The family member who's been living there for months. The partner who shares the home but never signed anything. The person staying with permission who pays toward the rent but has no written agreement. When a dispute erupts and they're suddenly locked out — locks changed, belongings removed, barred from the home they've been living in — they often assume they have no recourse, because they're "not on the lease." They were just an occupant, they think, so they can be put out at will.

New York law says otherwise, and a recent decision illustrates it. In James v. Hanley, a Mount Vernon City Court decision, a licensee — someone lawfully occupying a residence but not a lease-signing tenant — was restored to possession after an alleged illegal lockout. The court granted an order to show cause putting the occupant back in the home, applying a specific statutory protection: Real Property Actions and Proceedings Law § 768, which makes it unlawful to remove a person who has lawfully occupied a home for at least 30 consecutive days without lawful court process. The occupant didn't need to be on the lease. They needed to have lawfully lived there for at least 30 days — and that was enough to be protected from the lockout and restored to their home.

This is a hugely important protection that many people don't know they have, and this guide explains it. It will explain the key legal provision — RPAPL § 768 — and the 30-day protection at its heart. It will explain who counts as a protected "occupant," which reaches well beyond lease-signing tenants. It will explain what makes a lockout "unlawful" under the provision and what the remedy is. It will connect this to the James v. Hanley illustration. And it will offer practical guidance for a non-tenant occupant facing or fearing a lockout. This is general information rather than legal advice for your situation, and the case specifics here are described as reported rather than independently detailed. But the core message can change the picture entirely for anyone who's been told (or assumed) that not being on the lease means not having rights: in New York, you do not need to be on the lease to be protected from an illegal lockout — lawful occupancy, for long enough, can be enough.

The Key Protection: RPAPL § 768 and the 30-Day Rule

The foundation of this protection is a specific New York statute, and understanding what it says is the key to understanding your rights as a non-tenant occupant. Real Property Actions and Proceedings Law § 768 — added by New York's Housing Stability and Tenant Protection Act in 2019 — establishes a broad prohibition against unlawful eviction, and critically, it protects occupants, not just lease-signing tenants.

The core of the provision is this: it is unlawful to evict or attempt to evict an occupant of a dwelling unit who has lawfully occupied the dwelling unit for thirty consecutive days or longer (or who has entered into a lease), except through lawful court process — a warrant of eviction or other court order, or a governmental vacate order. Read that carefully, because the protected category is defined by lawful occupancy for 30 consecutive days or longer, not by having a lease. A person who has lawfully lived in the home for at least 30 consecutive days is protected from being evicted without lawful process — regardless of whether their name is on a lease.

This is the 30-day rule at the heart of the protection, and it's transformative for non-tenant occupants. The historical problem was that people who weren't lease-signing tenants — licensees, roommates, family members, others lawfully living in a home — often struggled to assert protection against illegal lockouts, because some legal doctrines tied illegal-lockout standing to being a "tenant" with a possessory interest. A licensee, under older thinking, might be seen as removable without the protections a tenant enjoys. Section 768 changed this by defining the protected class in terms of lawful occupancy for 30+ days, sweeping in occupants who aren't tenants in the lease-signing sense. If you've lawfully occupied the home for at least 30 consecutive days, the provision protects you from unlawful eviction, whether or not you ever signed a lease.

The provision also has real teeth, which signals how seriously the law takes this protection. Under § 768, unlawfully evicting a protected occupant (or failing to restore one who was unlawfully evicted) is a crime — a Class A misdemeanor — and each violation is a separate offense. Beyond the criminal exposure, there's a civil penalty of up to $100 per day for failing to restore an unlawfully-evicted occupant, running from when restoration is requested until it occurs (up to a cap). So the law doesn't just prohibit unlawful eviction of protected occupants in principle; it backs that prohibition with criminal and financial consequences, underscoring that a lockout of a protected occupant is a serious matter, not a private spat the law ignores.

The takeaway from the statute is powerful and clear: in New York, lawful occupancy for at least 30 consecutive days protects you from being evicted without lawful court process — and that protection does not depend on a lease. The 30-day rule is what extends the shield against illegal lockout to occupants who aren't lease-signing tenants. If you've lawfully lived in your home for a month or more, you are very likely within this protection, lease or no lease — which is exactly what so many non-tenant occupants don't realize.

It's worth understanding why this represented a meaningful change, because it explains why the protection is both important and underappreciated. Before this provision, the legal landscape for non-tenant occupants facing lockouts was murky and often unfavorable. Some courts, applying older doctrines, held that a licensee — someone occupying by permission rather than under a lease — didn't have the kind of possessory interest needed to maintain an illegal-lockout claim, meaning a licensee removed without process might be left without the restoration remedy a tenant could seek. In other words, the very people most vulnerable to being casually locked out — those without a lease to point to — were sometimes the ones courts found hardest to protect. The 30-day occupant provision was enacted to address exactly this gap, codifying a prohibition on self-help eviction that protects lawful occupants by their occupancy rather than by their lease status. It closed the loophole that had left non-tenant occupants exposed.

This history matters for you because it means the protection is relatively recent and not yet widely understood — which is precisely why so many non-tenant occupants (and even some of the people who lock them out) still operate on the old assumption that "no lease means no rights." That assumption may once have had more force for licensees; it has far less now, because the provision specifically extends protection to lawful occupants regardless of a lease. So if you're a non-tenant occupant, understand that the law has moved in your favor, and that outdated beliefs about licensees having no lockout protection don't reflect the current protection the 30-day rule provides. The ground has shifted toward protecting lawful occupants, and knowing that is part of claiming the protection.

Who Counts as a Protected "Occupant"

Because the protection turns on being a protected "occupant" rather than a lease-signing tenant, it's worth understanding who falls within that category — because it's broad, and it includes many people who assume they have no rights. The whole point of the 30-day rule is to protect lawful occupants beyond the narrow circle of those on the lease.

Drawing on how the protection is understood, the people protected as occupants (once they've lawfully occupied for at least 30 consecutive days) include:

Licensees. A licensee is someone who has permission to live in a dwelling but isn't a tenant in the lease sense — they occupy by permission rather than by a lease conveying a tenancy. This is exactly the category the James v. Hanley occupant fell into, and § 768's protection reaches licensees who've lawfully occupied for 30+ days. The person living somewhere with permission, even without a lease, is a licensee who can be protected.

Roommates. Someone sharing a home — living there lawfully with the tenant's permission — who isn't on the lease is a common example of a protected occupant. The roommate who moved in, lives there, maybe contributes to rent, but was never added to the lease, is protected once they've lawfully occupied for 30+ days.

Family members. A family member who has been lawfully living in the home — a relative who moved in, a partner, a family member of the tenant — is a protected occupant once they've been there 30+ consecutive days, even without being on the lease. Family members living in a home are squarely within the protection.

Other lawful occupants. More broadly, others who lawfully occupy the dwelling — people living there with permission in various arrangements — fall within the protection once the 30-day threshold is met. The category is defined functionally: lawful occupancy, for long enough, is what counts.

What unites all these is that they're people lawfully living in the home who aren't lease-signing tenants — and who, under older thinking, might have been told they had no illegal-lockout protection. Section 768's 30-day rule is precisely what protects them. The licensee, the roommate, the family member, the partner, the person staying with permission — if they've lawfully occupied the home for at least 30 consecutive days, they're protected from being locked out without lawful process, regardless of the absence of a lease with their name on it.

This breadth matters enormously, because these are exactly the people most likely to be told "you're not on the lease, so you have no rights" when a dispute arises — and most likely to believe it. A roommate falling out with the leaseholder, a family member in a dispute, a partner after a relationship sours, a licensee the owner wants gone — any of them might be locked out and assume they have no recourse because they never signed a lease. The 30-day occupant protection refutes that assumption: their rights don't depend on a lease; they depend on lawful occupancy for long enough, which they very likely have. Understanding that you count as a protected occupant — that "not on the lease" doesn't mean "not protected" — is the key that unlocks this protection for the many people it covers.

One important element worth noting: the occupancy must be lawful. The protection is for someone who lawfully occupied the home — who was there with permission, legitimately, not someone with no right to be there at all. So the protected occupant is a person who was lawfully living in the home (by permission, as a licensee, roommate, family member, etc.) for the requisite time — which describes the vast majority of non-tenant occupants in real households, who are there legitimately even without a lease.

This "lawful occupancy" requirement is worth understanding accurately, because it's sometimes used to try to disqualify occupants who actually qualify. "Lawful" occupancy generally means you were there with permission — you moved in legitimately, as a welcomed roommate, a family member taken in, a partner who moved in, a licensee given permission to stay. It does not require a lease, a formal agreement, or your name on any document; it requires that your presence in the home was permitted rather than, say, a trespass. The vast majority of people living in a home as roommates, family, or partners are lawful occupants in exactly this sense — they were let in and lived there with permission. So someone trying to defeat your protection by claiming your occupancy wasn't "lawful" faces a real burden, because ordinary permitted occupancy — the normal way people come to live in a shared home — is lawful occupancy. If you moved in with permission and have lived there openly for 30+ days, you very likely meet the lawful-occupancy requirement, and the absence of a lease doesn't change that.

What Makes a Lockout "Unlawful" — and the Remedy

Understanding the protection also means understanding what conduct it prohibits — what makes a lockout "unlawful" under the provision — and what the remedy is when it happens. Both are important for recognizing an illegal lockout and knowing what you can do about it.

The provision prohibits evicting a protected occupant except through lawful process — meaning a court-ordered eviction (a warrant or court order) or a governmental vacate order. Anything else — any attempt to remove the occupant through self-help rather than the lawful process — is what the provision makes unlawful. And it specifies the kinds of self-help conduct that constitute unlawful eviction, which track the classic lockout tactics:

Using or threatening force to make the occupant leave.

Interrupting or discontinuing essential services — cutting off heat, water, electricity, or other essential services — to force the occupant out.

Removing the occupant's belongings from the dwelling.

Removing the entrance door to the unit.

Changing or disabling the lock on the entrance door (changing the locks, or otherwise rendering the lock inoperable) without giving the occupant a key.

These are the hallmarks of an illegal lockout, and when done to a protected occupant without lawful process, they're unlawful under the provision. Recognize them: if you're a protected occupant and someone changes the locks on you, removes your belongings, cuts your essential services, takes the door, or uses force or threats to drive you out — all without a court order — that's the unlawful conduct the provision prohibits. The landlord or other person doesn't get to use these self-help tactics to remove a protected occupant; removal requires the lawful court process.

As for the remedy, the central one — illustrated by James v. Hanley — is restoration to possession. A protected occupant who has been unlawfully locked out can seek to be restored to the home — put back in possession. In the case, the occupant sought restoration through an order to show cause (a procedural vehicle for seeking prompt court relief), and the court granted it, restoring the occupant to the residence. So the remedy isn't just a theoretical prohibition; it's a concrete path back into your home: a protected occupant who's been illegally locked out can go to court and seek an order restoring them to possession, and courts can and do grant that relief, as James v. Hanley shows.

Beyond restoration, recall the provision's teeth: the criminal exposure (unlawful eviction as a Class A misdemeanor) and the civil penalty (up to $100/day for failure to restore). These reinforce the remedy — the person who unlawfully locked out a protected occupant faces not just an order to restore them but potential criminal and financial consequences. The combination means a protected occupant isn't powerless against a lockout: they can seek restoration to their home, and the person who locked them out faces serious consequences for the unlawful eviction.

The practical significance is that a protected occupant facing an illegal lockout has a real, concrete remedy — restoration — and a real legal basis for it, regardless of not being on a lease. The person who's been locked out and assumes they just have to accept it and leave is mistaken; if they're a protected occupant (lawful occupancy for 30+ days), they can seek to be put back in their home, and the law treats the lockout as the serious, even criminal, matter it is. Recognizing the unlawful conduct and knowing the remedy exists is what turns "I was locked out and there's nothing I can do" into "I was unlawfully locked out and I can seek to be restored."

It's worth underscoring the core principle that ties all of this together, because it's the heart of the protection: removal of a protected occupant must go through lawful process, not self-help. The person who wants a protected occupant out isn't without any path — they can pursue the lawful court process to seek removal, with its notice and its procedures and its protections. What they can't do is skip that process and simply force the occupant out through self-help: changing the locks, removing belongings, cutting services, using threats. The provision doesn't say protected occupants can never be removed; it says they can't be removed this way — through self-help rather than lawful process. This distinction is the essence of the protection against illegal lockout generally, and the 30-day rule extends it to non-tenant occupants: like a tenant, a protected occupant can be removed only through lawful process, not by self-help. So a landlord or leaseholder frustrated with a non-tenant occupant has a lawful route if they have grounds — but the lockout is not it.

This also means that even a person who might ultimately have a valid basis to seek the occupant's removal cannot resort to self-help in the meantime. The existence of a dispute, or even a good reason to want the occupant gone, doesn't authorize the lockout; the lawful process is still required. So a protected occupant who's been locked out isn't necessarily entitled to stay forever — but they are entitled not to be removed by self-help, which means they can be restored after an illegal lockout even if the other party might separately pursue lawful removal. The illegal lockout is wrong regardless of whether the person doing it might have had a lawful path available; they didn't use it, and the self-help removal is unlawful on its own terms.

The James v. Hanley Illustration

The James v. Hanley decision brings the protection to life, showing the 30-day occupant protection working in practice to restore a non-tenant occupant to their home. It's worth understanding as an illustration of the principle, even as the specifics are described as reported.

In the case, a licensee — an occupant of a Mount Vernon residence who was not a lease-signing tenant — alleged they had been illegally locked out, and sought to be restored to possession. The occupant brought the matter to court through an order to show cause seeking restoration. The court granted the order to show cause and restored the occupant to possession, applying the protection of RPAPL § 768 — the provision protecting a person who has lawfully occupied a home for at least 30 consecutive days from removal without lawful process.

What makes the case a clean illustration is that it shows exactly the point this guide centers: a licensee — someone not on a lease — was protected and restored, based on the 30-day lawful-occupancy protection rather than on any lease. The occupant's rights didn't depend on being a lease-signing tenant; they depended on being a lawful occupant for the requisite time, which § 768 protects. The court applied that protection and put the occupant back in their home. The "you're not on the lease" status that might once have defeated such a claim didn't defeat it here, because the 30-day occupant protection doesn't require a lease.

The case also illustrates the mechanism — the order to show cause as the vehicle for seeking prompt restoration — and the remedy — restoration to possession. A locked-out occupant went to court, sought restoration via order to show cause, and obtained it. That's the practical path the protection provides, shown in action: not merely an abstract right, but a concrete process (order to show cause) leading to a concrete remedy (restoration) for a non-tenant occupant.

For a non-tenant occupant, James v. Hanley is a reassuring, concrete example of the protection working. It shows that a licensee really can be restored after an illegal lockout under the 30-day occupant protection — that the principle isn't just theoretical but is applied by courts to put non-tenant occupants back in their homes. If you're a protected occupant who's been locked out, the case illustrates that your path — seeking restoration based on your lawful occupancy, not a lease — is a real one that courts recognize. It's the principle of this guide, demonstrated: you don't need to be on the lease to be protected from an illegal lockout and restored to your home.

(As noted, the specific details of the decision are described here as reported; the underlying legal protection it applies — RPAPL § 768's 30-day occupant rule — is the verified foundation, and the case is presented as an illustration of that protection in operation.)

Practical Guidance for a Non-Tenant Occupant

If you're a non-tenant occupant — a licensee, roommate, family member, or other lawful occupant — facing or fearing an illegal lockout, here's practical guidance drawn from the protection and the case. The through-line is that your lack of a lease doesn't leave you without rights, and there are concrete steps to protect yourself.

Understand that you're likely protected if you've lawfully lived there 30+ days. First and most important: don't assume that not being on the lease means you have no rights. If you've lawfully occupied your home for at least 30 consecutive days, you're very likely a protected occupant under the 30-day rule, shielded from illegal lockout regardless of the absence of a lease. Recognizing that you're protected is the foundation — it's what transforms "I'm not on the lease, so I have no recourse" into "I'm a protected occupant with the right not to be locked out without lawful process."

Be able to prove your lawful occupancy and its duration. Because the protection turns on lawful occupancy for 30+ consecutive days, being able to prove that you've lawfully occupied the home for at least 30 days is key. Gather documentation that establishes you live there and have for the requisite time: mail addressed to you at the home (dated, showing you've received mail there over time), documents listing the address, records of rent contributions or payments, communications acknowledging you live there, and anything else showing your lawful occupancy and its duration. The AG's guidance itself notes examples like mail with the dwelling's address dated more than 30 days earlier as the kind of proof that establishes the protection. So assemble proof that you've lawfully lived there for 30+ days — it's what establishes your protected status. And do this proactively if you can, before any lockout happens — because if you're suddenly locked out, you may not be able to get back inside to gather documents, so having proof of your occupancy kept somewhere accessible (or readily reconstructable from mail, accounts, and records outside the home) means you can establish your protected status even after being shut out. The occupant who can quickly show a month or more of dated mail, payment records, and other proof of living there is well-positioned to assert the protection; the one scrambling to reconstruct it after a lockout faces a harder path at exactly the wrong moment.

Recognize an illegal lockout. Know the unlawful conduct: if someone changes your locks, removes your belongings, cuts off your essential services, takes the door, or uses force or threats to drive you out — all without a court order — that's an illegal lockout of a protected occupant. Recognizing it as unlawful (not as something you must accept) is what lets you respond.

Act promptly to seek restoration. If you're illegally locked out, you can seek to be restored to your home — as the occupant in James v. Hanley did, through an order to show cause. Act promptly, because restoration is the remedy and getting back into your home is time-sensitive. The order to show cause is a vehicle for seeking prompt court relief, and a protected occupant can use it to seek restoration. Don't accept the lockout as final; seek to be put back in.

Involve law enforcement where appropriate. Because unlawful eviction of a protected occupant is a crime (a Class A misdemeanor), law enforcement has a role. The Attorney General's guidance directs law enforcement to treat illegal lockouts as the criminal matters they are and to help protect occupants. So if you're being illegally locked out, calling the police may be appropriate — the lockout isn't just a civil matter but a potential crime, and law enforcement can be involved in protecting your rights. (How police respond can vary, which is another reason to also pursue the court remedy and get legal help.)

Get legal help. Seeking restoration and asserting your rights as a protected occupant benefits from legal help, especially given the procedural steps (like the order to show cause) and the value of establishing your protected status effectively. Tenant-rights organizations, legal aid offices, and housing attorneys can help a non-tenant occupant assert the 30-day protection and seek restoration. Get help promptly, both for the restoration and to navigate the process.

The overarching message of the practical guidance is that a non-tenant occupant facing a lockout is far from powerless. Understand you're likely protected, be ready to prove your 30+ days of lawful occupancy, recognize the lockout as unlawful, act promptly to seek restoration (via order to show cause, as in the case), involve law enforcement where appropriate (it's a crime), and get legal help. The lack of a lease doesn't strip you of these rights — the 30-day occupant protection is yours, and these are the steps to use it.

What This Looks Like for a Real Person

Let's see how the protection plays out for a non-tenant occupant facing a lockout.

Imagine someone who has been living in an apartment for several months — they moved in with permission, they contribute toward the rent, they receive their mail there, it's their home — but their name was never added to the lease; the lease is in someone else's name. A dispute erupts, and one day they come home to find the locks changed and their belongings bagged up outside. The person who controls the lease (or the owner) tells them they have no right to be there — "you're not on the lease, so you're not a tenant, and you have to go." Locked out and told they have no standing, the occupant feels they must simply accept it and find somewhere else to live.

Run it the way that despair suggests. The occupant believes the "you're not on the lease" line — assumes that without a lease, they have no rights against being locked out — and gives up, gathering their bagged belongings and leaving, absorbing the lockout as if it were legitimate. The self-help lockout works, because the occupant didn't know that not being on the lease doesn't mean not being protected. Their real rights went unused.

Run it informed by the protection. The occupant understands that, having lawfully lived in the home for more than 30 consecutive days, they're very likely a protected occupant under RPAPL § 768 — protected from illegal lockout regardless of not being on the lease, just as the licensee in James v. Hanley was. They recognize the changed locks and the removed belongings as an illegal lockout of a protected occupant. They gather proof of their lawful occupancy and its duration — the mail addressed to them at the home over the past months, their rent contribution records, documents showing they live there. They act promptly, going to court and seeking restoration through an order to show cause, as the occupant in the case did — and, given their lawful 30+ day occupancy, they have a real basis to be restored to their home. They understand the lockout was not just wrongful but potentially criminal, and they get legal help to assert their rights. The "you're not on the lease" line, which was meant to make them give up, turns out to be beside the point: their protection depended on lawful occupancy, which they had, not a lease.

Same occupant, same lockout, same "not on the lease" status. In one version they accept the lockout as legitimate and leave; in the other, they recognize they're a protected occupant, prove their 30+ days of occupancy, and seek restoration to their home. The difference was knowing that you don't need to be on the lease to be protected from an illegal lockout.

Getting Help and Asserting Your Protection

For a non-tenant occupant facing a lockout, prompt help makes a real difference, so a few closing notes.

Tenant-rights organizations, legal aid offices, and housing attorneys handle illegal lockouts, including those involving non-tenant occupants protected by the 30-day rule, and can help you establish your protected status, seek restoration, and navigate the process (like the order to show cause used in the case). Many of these resources are free. Because asserting the protection involves proving your lawful occupancy and taking procedural steps, and because restoration is time-sensitive, getting knowledgeable help promptly is valuable — both to get you back into your home and to assert your rights effectively. And because unlawful eviction of a protected occupant is a crime, understand that law enforcement may also have a role, though pursuing the court remedy with legal help is the surest path to restoration.

A few principles to carry. Know that you do not need to be on the lease to be protected from an illegal lockout — lawful occupancy for at least 30 consecutive days protects you under the provision, whether you're a licensee, roommate, family member, or other lawful occupant. Be ready to prove your lawful occupancy and its 30+ day duration, since that's what establishes your protection. Recognize an illegal lockout (changed locks, removed belongings, cut services, removed door, force or threats, without a court order) for the unlawful conduct it is. Act promptly to seek restoration, don't accept the lockout as final, and get legal help. The lack of a lease is not the end of your rights.

A note on scope and sourcing: the protection described here — RPAPL § 768's prohibition on unlawfully evicting an occupant who has lawfully occupied for 30+ consecutive days, reaching licensees and other non-tenant occupants, with restoration as the remedy and criminal and civil penalties — is grounded in New York statute and guidance. The James v. Hanley decision is presented as an illustration of this protection as reported; the durable foundation is the statute itself. As always, specifics can vary and evolve, and this is general information rather than legal advice, so getting advice for your particular situation is worthwhile — especially where your home and your standing as an occupant are at stake. Tenants and occupants elsewhere should note this is New York law; other places have their own rules.

Lawful Occupancy, Not a Lease, Is What Protects You

Step back and hold the empowering lesson. The belief that only a lease-signing tenant has rights against being thrown out of their home is false in New York, and the falseness protects a huge number of people who don't know it. Under RPAPL § 768, a person who has lawfully occupied their home for at least 30 consecutive days is protected from being evicted without lawful court process — and that protection reaches licensees, roommates, family members, and other lawful occupants, not just those on the lease. James v. Hanley illustrates it: a licensee, not a lease-signing tenant, was restored to their home after an illegal lockout, protected by the 30-day occupant rule. Lawful occupancy, not a lease, is what protected them.

So if you're an occupant without your name on the lease — a roommate, a family member, a partner, a licensee, someone living in your home with permission — understand that you are very likely not without rights against an illegal lockout. If you've lawfully lived there for at least 30 consecutive days, the law protects you from being locked out without lawful process, and if you are locked out, you can seek to be restored to your home, just as the occupant in the case was. The "you're not on the lease, so you have no rights" line that someone might use to push you out is, for a protected occupant, simply wrong — your protection depends on your lawful occupancy, which you have, not on a lease you lack.

So don't accept an illegal lockout as legitimate just because your name isn't on the lease. Know that lawful occupancy for 30+ days protects you, be ready to prove that occupancy, recognize the lockout as the unlawful (and potentially criminal) act it is, act promptly to seek restoration, and get help. You do not need to be on the lease to be protected from an illegal lockout — and as one occupant's case shows, lawful occupancy can be enough to get you back into the home that is rightfully yours to occupy. Find out where you stand.

Find out if you have a case in 30 seconds →