🏢 Feature Manual: Multi-Tenancy & Audits
← Docs Index Open Tenant Admin ↗
Help Center / Feature Library / Multi-Tenancy

Multi-Tenancy, White-Labeling & Permission Auditing

Complete security and administration guide covering strict tenant isolation, global SuperAdmin jurisdiction, white-label branding, S3 storage, and permission audit logs.

1. Multi-Tenant Architecture & Boundary Rules

ConnectCare is engineered as a secure, shared-database, row-isolated multi-tenant B2B SaaS platform. Every database entity is linked directly to a tenant_id anchor (e.g. default, act_fibernet, hathway_blr).

2. Subfeature Breakdown

Subfeature 5.1: Immutable Permission Audit Trail (user_permission_audit_logs)

To satisfy enterprise governance and compliance requirements, ConnectCare records an immutable audit log whenever a user is created, a role is granted or modified, or an account status is updated:

Audit FieldDescriptionSample Log Entry
actor_idID of manager/admin performing action1 (sameer shah)
target_user_idUser account being modified3 (Raju)
action_typeType of permission modificationROLE_GRANTED, PIN_RESET, USER_CREATED
detailsJSON diff of role/permission change{"old_role":"SUPPORT_AGENT","new_role":"FIELD_ENGINEER"}
ip_addressClient IPv4/IPv6 address of actor103.21.124.50
created_atExact UTC timestamp2026-09-30 15:31:00

Subfeature 5.2: AWS S3 Attachment Storage & Compression

Attachments (proof-of-resolution photos, optical meter readouts) are partitioned into dedicated AWS S3 buckets:

s3://connectcare-attachments/{tenant_id}/{ticket_number}/{type}_{timestamp}.jpg

If S3 credentials are unavailable, the platform automatically falls back to local disk storage (uploads/proofs/) without disrupting field technician workflows.

Subfeature 5.3: Meta Embedded Signup (Facebook Login for Business)

Allows new ISP tenants to onboard on-the-fly and link their WhatsApp Business Account (WABA) in seconds via Meta's Embedded Signup popup, auto-provisioning System User Tokens and webhook subscriptions.

Subfeature 5.4: Field Engineer Provisioning & WhatsApp OTP Onboarding

Managers configure their field workforce within the Tenants & Organizations console (tenants.html):

Subfeature 5.5: Multi-Tenant Google SSO Gate & Self-Service Onboarding

Prevents uninvited Google users from inadvertently accessing the default tenant or unauthorized data:

Subfeature 5.6: Real-Time Account Deactivation & Session Termination

Enforces zero-delay deactivation across all access vectors:

Subfeature 5.7: Meta WhatsApp Cloud API v26.0 Integration & "Test-and-Save" Governance

ConnectCare interfaces directly with Meta's official WhatsApp Business Cloud API to power conversational complaint intake, automated status updates, and interactive notifications: