Setup Guide 03

Multi-Tenant Hierarchy: Setting Up Customers, Sites & GPS Geofencing

GuardMarshal is built on a clean multi-tenant architecture: One Security Agency manages multiple Customer Companies. Each Customer has multiple physical Sites (factories, IT towers, campuses). Each Site has its own GPS Geofence boundary, checkpoints, and assigned guards.

Published: October 2026 • Reading Time: 8 mins • Screenshots: 6 Detailed Views

1. The GuardMarshal Hierarchy Diagram

To understand how GuardMarshal organizes your operational data, review the structural hierarchy below:

Multi-Tenant Relationship Architecture
YOUR SECURITY AGENCY (e.g. Suraksha Shield Pvt. Ltd.)
↓ manages
CUSTOMER A: Sahyadri Auto Components
↓ operates
📍 Site 1: Chakan Plant
• Geofence: 200m radius
• Posts: Main Gate, Loading Bay
• Checkpoints: 6 (QR + GPS)
📍 Site 2: Bhosari Warehouse
• Geofence: 150m radius
• Posts: Gate 1, Heavy Staging
CUSTOMER B: Nirmal Tech Parks
↓ operates
📍 Site 1: Hinjewadi Tower A
• Geofence: 120m radius
• Posts: Reception, Server Room
• Checkpoints: 8 QR tags
📍 Site 2: Kharadi Campus
• Geofence: 300m perimeter

2. Viewing Your Customer Directory

From the main navigation under Customers & Sites, click Customers (/customers).

Customer Directory with Card and List View Toggle
Figure 3.1: Customer Directory. Each card displays the client logo/initials, customer code, active site count, total assigned logins, and quick action buttons. You can toggle between Cards and List view anytime.

3. Adding a New Customer (Creation View)

Click the primary + Add Customer button on the top right. A modal window opens with the customer registration form:

Add Customer Modal Dialog
Figure 3.2: The Add Customer modal dialog. Fill in the client's corporate name, company code, key contact person, email, and billing address.

Customer Form Field Explanations:

Field Name Required Instructions & Example
Company Name Required The client's official enterprise name (e.g. Sahyadri Auto Components Ltd.).
Customer Code Required Short unique identifier (e.g. SAHYADRI). Used on client reports, invoice codes, and site URLs.
Primary Contact Name Required Name of your main corporate contact (e.g. Sunil Kulkarni - VP Operations).
Billing Email Required Email address where monthly GST invoices and operational reports are automatically sent.
Contact Phone Optional Official phone line for emergency escalation and WhatsApp broadcast alerts.
Billing Address & GSTIN Optional The customer's registered tax address and GSTIN. Used by the Invoicing module to auto-generate compliant tax bills.

4. The Customer Detail Hub

Click on any customer in your directory to open their dedicated Customer Hub:

Customer Detail Hub
Figure 3.3: Customer Hub. The breadcrumb trail shows Customers › Sahyadri Auto Components Ltd.. Use the tabs to manage Sites, Customer Logins, and Contacts.

5. Adding a Site (Location) with GPS Geofencing

In the Customer Hub under the Sites tab, click + Add Site (or open Sites from the main menu):

Add Site Modal Dialog
Figure 3.4: Add Site / Location modal. Configure the facility name, physical address, GPS coordinates, geofence radius in meters, and shift guard requirements.

Site Form Field Explanations:

Field Name Required What It Controls & How to Configure
Site Name Required The facility's local name (e.g. Chakan Manufacturing Plant or Warehouse Unit 4).
Facility Address Required Street address, industrial estate / zone, city, state, and pincode.
Latitude & Longitude Required The exact GPS coordinates of the site entrance or perimeter center (e.g. 18.7606, 73.8636). You can copy this directly from Google Maps or click on the integrated map picker.
Geofence Radius (Meters) Required The permissible distance from the center coordinates within which a guard is considered "on premise" (e.g. 150m or 250m).
Critical Enforcement: When a guard opens the mobile app and taps "Start Duty", the app measures their device GPS distance. If they are outside this radius, the punch is rejected or flagged as "Off-Premise Exception".
Guards Required per Shift Optional Number of guards contracted for Day, Evening, and Night shifts. The Operations dashboard uses this to calculate duty shortfall alerts.

6. Location Directory & Key People

Click on the Contacts tab inside the customer profile to manage site hosts, facility managers, and key emergency contacts:

Customer Directory Contacts
Figure 3.5: Customer Directory Contacts. Add hosts with their email and phone numbers. The Visitor Desk uses these contacts to route instant 1-tap visitor approval emails!

7. The Site Hub: Your Facility Command Launchpad

Navigating to /locations/:id opens the complete Site Hub for that specific guarded facility:

Site Hub with Operations Hub Groups
Figure 3.6: The Site Hub. Grouped into Today (Live Guards, Patrols, Visitors Inside, Open Issues), Set Up (Map Plans, Floor Layouts, Checkpoints, Key People), and Records (Registers, Material In/Out, Site Chat).