List a user's properties with their legal review
Access: Bearer token required. Roles: ADMIN.
Every property where the user is the landlordId or the agentId, newest first, with no pagination. Soft-deleted properties are included and flagged with isDeleted: true; drafts are included too. Each property carries legalReview: the most recent PropertyVerificationAssignment for that property (or null if none exists), with the lawyer, the decision and checklist, documents (the media snapshot frozen when the lawyer was assigned) and submittedDocuments (files the lister sent the lawyer, oldest first). legalReview.status is one of assigned, accepted, in_review, changes_requested, verified, rejected, reassigned. reviewedAt and dueDate are omitted when unset. The user's role is not checked; a user with no listings returns an empty array.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
id*stringObjectId of the landlord or agent.
Properties with their latest legal review
application/json- response
status*integersuccess*booleanmessage*stringdata*array<>curl -X GET 'http://localhost:4000/api/v1/admin/users/string/properties'{ "status": 200, "success": true, "message": "User properties fetched successfully", "data": [ { "_id": "665f1c2e9b1d4a0012ab34cd", "title": "3-Bedroom Flat, Lekki Phase 1", "type": "APARTMENT", "status": "listed", "legalStatus": "legally_verified", "location": { "state": "Lagos", "lga": "Eti-Osa", "community": "Lekki Phase 1", "street": "14 Admiralty Way", "nearestLandmark": "Lekki Phase 1 Gate", "coordinates": { "type": "Point", "coordinates": [ 3.4723, 6.4474 ] } }, "pricing": { "rentPrice": 4500000, "salePrice": null, "currency": "NGN", "rentDurationYears": 1 }, "media": { "images": [ { "url": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/living-room.jpg", "metadata": { "address": "14 Admiralty Way, Lekki Phase 1, Lagos", "coordinates": [ 3.4723, 6.4474 ], "tag": "Living room" }, "_id": "6660a7d49b1d4a0012ab3570" } ], "videos": [] }, "verification": { "isVerified": true, "verifiedAt": "2026-06-06T10:30:00.000Z", "verifiedBy": "665f1c2e9b1d4a0012ab34c3", "verificationNotes": "Certificate of Occupancy and survey plan confirmed against the Lagos State Lands Registry." }, "activeLegalAssignmentId": "6660a7d49b1d4a0012ab3501", "deletedAt": null, "createdAt": "2026-06-04T09:15:22.481Z", "isDeleted": false, "legalReview": { "_id": "6660a7d49b1d4a0012ab3501", "status": "verified", "lawyer": { "_id": "665f1c2e9b1d4a0012ab34c3", "firstName": "Folake", "lastName": "Adeyemi", "email": "folake.adeyemi@example.com", "avatar": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/folake.jpg" }, "dueDate": "2026-06-12T17:00:00.000Z", "decision": { "outcome": "verified", "notes": "Certificate of Occupancy and survey plan confirmed against the Lagos State Lands Registry.", "checklist": [ { "item": "Certificate of Occupancy", "status": "pass", "comment": "Registered, no encumbrance", "_id": "6660a7d49b1d4a0012ab3580" } ], "decidedAt": "2026-06-06T10:30:00.000Z" }, "documents": { "images": [ { "url": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/living-room.jpg", "metadata": { "address": "14 Admiralty Way, Lekki Phase 1, Lagos", "coordinates": [ 3.4723, 6.4474 ] }, "_id": "6660a7d49b1d4a0012ab3570" } ], "videos": [] }, "submittedDocuments": [ { "_id": "6660a7d49b1d4a0012ab3505", "documents": [ { "url": "https://res.cloudinary.com/example/raw/upload/v1717600000/homelinkhub/media/certificate-of-occupancy.pdf", "name": "certificate-of-occupancy.pdf", "mimeType": "application/pdf", "size": 482113 } ], "note": "C of O attached as requested.", "submittedBy": { "_id": "665f1c2e9b1d4a0012ab34c1", "firstName": "Chinedu", "lastName": "Okafor", "email": "chinedu.okafor@example.com", "avatar": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/chinedu.jpg", "role": "AGENT" }, "submittedAt": "2026-06-05T14:02:10.107Z" } ], "reviewedAt": "2026-06-06T10:30:00.000Z" } } ]}Change a user's role PATCH
Overwrites the user's role with one of the UserRole values: TENANT, LANDLORD, AGENT, LAWYER, DEVELOPER, ADMIN.
List a lawyer's assignments and counterparties GET
Every PropertyVerificationAssignment whose lawyerId is this user, newest first, with the property (and its landlord and agent), the assigner and document submitters populated.
HomeLink Hub