// Admin Console function ModuleAdmin() { const A = KS_DATA.admin; const [tab, setTab] = React.useState('overview'); const tabs = [ {id:'overview', l:'Overview'}, {id:'users', l:'Users & Roles'}, {id:'audit', l:'Audit Log'}, {id:'compliance',l:'Compliance'}, {id:'licenses', l:'Licenses'}, {id:'settings', l:'Policies'}, ]; return (
{IC.shieldCheck}
Admin Console — Government of India
MeitY tenant · 4,820 active users · All systems operational
{/* Tabs */}
{tabs.map(t => ( ))}
{tab === 'overview' && (
{/* KPI cards */} {[ {l:'Active users', v:'4,820', d:'+ 128 this month', c:'var(--ok)'}, {l:'Licenses in use', v:'4,820 / 5,000', d:'96.4% · 180 unassigned', c:'var(--warn)'}, {l:'Storage used', v:'342.7 / 500 TB', d:'68.5% · 32 TB this month', c:'var(--ok)'}, {l:'Compliance score', v:'98.2%', d:'ISO · SOC 2 · DPDP', c:'var(--ok)'}, ].map(k => (
{k.l}
{k.v}
{k.d}
))} {/* Org tree */}
Organisation hierarchy
{IC.building}
{A.orgTree[0].name}
Root organisation · 4,820 users
Owner tenant
{A.orgTree.slice(1).map(o => (
{IC.building}
{o.name}
{o.users.toLocaleString('en-IN')} users
Active
))}
{/* Compliance */}
Compliance & certifications
All current
{A.compliance.map(c => (
{IC.shieldCheck}
{c.code}
{c.status} · {c.renewed}
))}
{/* Recent audit */}
Recent audit events
{A.audit.slice(0, 6).map((row, i) => ( ))}
{row[0]} {row[1]} {row[2]} {row[3]}
{/* Security score */}
Security posture
Strong
{[ {l:'Multi-factor authentication', v:'98%', c:'var(--ok)', d:'4,725 of 4,820 users enrolled'}, {l:'SSO adoption', v:'100%', c:'var(--ok)', d:'SAML + OIDC via Keycloak'}, {l:'DLP policies', v:'12 active', c:'var(--ok)', d:'PII detection · Aadhaar redaction'}, {l:'Encryption', v:'AES-256', c:'var(--ok)', d:'At rest + TLS 1.3 in transit'}, {l:'Air-gap deployment', v:'Available', c:'var(--ok)', d:'For classified workspaces'}, ].map(s => (
{IC.check}
{s.l}
{s.d}
{s.v}
))}
)} {tab === 'users' && (
Users & Roles
{A.users.length * 605} total
{A.users.map((u, i) => ( ))}
Name Email Designation Department Role Status Last active
{u[0].split(' ').map(s=>s[0]).join('').slice(0,2)}
{u[0]}
{u[1]} {u[2]} {u[3]} {u[4]}
{u[5]}
{u[6]}
)} {tab === 'audit' && (
Audit Log
209,841 events · retained 7y
{A.audit.map((row, i) => ( ))}
Timestamp Actor Event Target Result Source IP
2026-07-13 {row[0]} {row[1]} {row[2]} {row[3]} {row[4]==='err'?'blocked':row[4]==='warn'?'warn':'ok'} 10.42.{Math.floor(Math.random()*255)}.{Math.floor(Math.random()*255)}
)} {tab === 'compliance' && (
{A.compliance.map(c => (
{IC.shieldCheck}
Compliant
{c.code}
{c.status} · {c.renewed}
))}
{IC.shieldCheck}
Data residency
All customer data resides within Indian sovereign infrastructure. Primary region: MeghRaj Mumbai (AZ-1); disaster recovery: MeghRaj Hyderabad (AZ-2). No data is transferred outside Indian territory. Air-gapped deployment available for classified workspaces (up to Secret classification with additional accreditation).
)} {tab === 'licenses' && (
KaryaSuite V3 Enterprise · Government Edition
Contract MeitY/2026/PROC/1129 · Expires 31 Mar 2027
4,820 of 5,000 licenses assigned 180 available
{[ {l:'Word Processor', v:'4,820'}, {l:'Spreadsheet', v:'4,820'}, {l:'Presentation', v:'4,820'}, {l:'PDF Studio', v:'4,205'}, {l:'Whiteboard', v:'2,140'}, {l:'Database', v:'421 (specialist)'}, {l:'AI Assistant', v:'4,820'}, {l:'Admin console', v:'47 (delegated)'}, {l:'Offline / local AI', v:'820'}, ].map(m => (
{m.l}
{m.v}
))}
)} {tab === 'settings' && (
Policies
{[ {l:'Multi-factor authentication', d:'Require MFA for all users. Currently: TOTP + hardware key optional.', on:true}, {l:'External sharing', d:'Documents may be shared with @gov.in, @nic.in domains only.', on:true}, {l:'Data loss prevention', d:'Scan and block Aadhaar, PAN, and bank account patterns in outbound files.', on:true}, {l:'Retention', d:'Records classified as "Official" retained 7 years, "Secret" retained 25 years.', on:true}, {l:'Watermarking', d:'All documents printed or exported carry a user-identifying watermark.', on:true}, {l:'AI training opt-out', d:'Workspace data is never used to train foundation models.', on:true, locked:true}, {l:'Legal hold', d:'When enabled, files under litigation cannot be deleted or altered.', on:false}, {l:'On-premise AI models', d:'Route AI inference to on-premise Karya-8B model rather than cloud.', on:true}, ].map(p => (
{p.on?IC.check:IC.x}
{p.l}
{p.locked && {IC.lock} Locked by contract}
{p.d}
))}
)}
); } window.ModuleAdmin = ModuleAdmin;