Right-to-Rent Re-verification Deadline Sweep
Right-to-Rent Re-verification Deadline Sweep
Overview
The Right-to-Rent Re-verification Deadline Sweep is a scheduled compliance workflow that automatically identifies tenants whose identity documents are approaching expiry and alerts organisation admins in advance. This ensures landlords and agents remain compliant with Right-to-Rent legislation under the Renters' Rights Act without relying on manual tracking.
How It Works
1. Scheduled Trigger
The sweep runs automatically every Wednesday at 03:00 UTC:
cron: 0 3 * * 3
No manual intervention is required.
2. Tenant Eligibility Check
The workflow queries all tenants meeting both of the following conditions:
idVerificationStatus = 'verified'— the tenant has a confirmed, verified identity.idVerifiedAt IS NOT NULL— a verification timestamp exists to calculate expiry from.
3. Expiry Calculation
For each eligible tenant, the workflow calculates an estimated document expiry date using:
estimated_expiry = idVerifiedAt + typical visa/document validity period
If the estimated expiry falls within the next 30 days, the tenant is flagged as approaching their re-verification deadline.
4. Compliance Record
For every flagged tenant, the workflow upserts a row in the compliance_checks table. This creates an auditable record of the approaching deadline and avoids duplicate entries if the sweep runs again before the issue is resolved.
5. Admin Notification
A reminder notification is sent to all organisation admins (org_members) associated with the tenancy. Admins receive a prompt to initiate the re-verification process before the deadline is reached.
Entities Involved
| Entity | Purpose |
|---|---|
tenants | Provides idVerificationStatus and idVerifiedAt |
tenancy_tenants | Associates tenants with their active tenancies |
tenancies | Scopes compliance checks to the correct organisation |
compliance_checks | Stores the upserted expiry warning records |
org_members | Identifies which admins should receive the reminder |
notifications | Delivers the reminder message to org admins |
What Admins Should Do
When you receive a Right-to-Rent re-verification reminder:
- Identify the tenant named in the notification.
- Contact the tenant to request updated identity documents.
- Complete re-verification within the 30-day window to remain compliant.
- Update the tenant's verification record once the new documents have been checked — this will reset the expiry calculation for the next sweep cycle.
Note: Failure to re-verify a tenant's Right-to-Rent status before their document expires may result in a breach of landlord compliance obligations under UK law.
Frequency & Timing
| Property | Value |
|---|---|
| Schedule | Every Wednesday at 03:00 UTC |
| Look-ahead window | 30 days |
| Notification type | Reminder |
| Recipients | Organisation admins (org_members) |