ASP.NET Core 10 Blazor Server application for Exchange Online administration, mailbox/calendar permissions, group management, MFA operations, conference room setup, named locations, and Active Directory tasks through a self-service web interface. Provides 22 modules (21 operational + 1 config-only) covering EXO, Graph API, and on-prem AD operations.
- Full Access - Grant/revoke full mailbox access with optional AutoMapping
- Send As - Grant/revoke Send As permissions
- Single operations and bulk CSV upload support
- On-premises mailbox support for authorized power users (see below)
- Set calendar sharing permissions (Owner, Editor, Reviewer, Limited Details, etc.)
- Remove calendar permissions
- Automatic calendar folder detection (supports international/localized folder names)
- Single operations and bulk CSV upload support
- On-premises mailbox support for authorized power users (see below)
Check migration eligibility and create move batches between Exchange Online and on-premises Exchange.
- Validates current mailbox location before eligibility decisions
- Checks on-prem mailbox and archive size before cloud migrations
- Move-back batches pass all configured databases from
OnPremTargetDatabasesin the Migration module config to Exchange for distribution - Built-in move-back database defaults match the approved 2019 database list; no DAG lookup or space balancing is performed
- Section access keys:
MigrationCheck,MigrationCreate,MigrationManage
Analyze message headers and search mail flow across Exchange Online and on-premises transport logs.
- Realtime trace queries both Exchange Online message trace and on-premises message tracking logs
- Optional ticket number is recorded in audit logs only; it does not call ServiceNow
- Historical-search reports are delivered only to the authenticated user's email address
- Header Analysis is the primary workflow and supports pasted headers plus
.emland.msguploads - Extracts Message-ID, sender, recipient, subject, routing hops, authentication details, spam/filtering clues, delivery-failure evidence, and all parsed header values
- Header analysis can populate or immediately run a trace using the parsed Message-ID and date window
- Historical Exchange Online searches are still submitted as background jobs for ranges beyond the realtime window
- Per-message delivery-detail exports above the live threshold run as background jobs. The notification email carries a link to the Downloadable Reports page (
/message-analysis/reports), never the export itself, so the data stays behind the login gate - The notification recipient box is pre-filled with the operator's own address and is freely editable: any address may be added, and clearing it entirely is valid and means no email is sent. The export is still produced and still listed on the Downloadable Reports page. Administrators are never added to the recipient set
- Downloadable Reports lists those exports with who requested what; downloading requires Message Analysis access and a ticket number, which is recorded with the download for audit
- Exports are kept for 30 days. The app deletes expired ones itself at startup, in the same pass that prunes old job records — there is nothing to install and no scheduled task. A row whose export could not be saved shows as Failed, distinct from an expired one
- Section access key:
MessageTrace
When a target mailbox is detected as on-premises:
- Regular users see an escalation message directing them to contact the Exchange team.
- Power users (members of the
MailboxPermissionsOnPremorCalendarPermissionsOnPremsection-access groups) are prompted with a confirmation dialog and can proceed. - Execution uses an on-prem PowerShell remoting session (
New-PSSession) authenticated with credentials retrieved from Delinea Secret Server at runtime. - Concurrency is throttled to 2 simultaneous on-prem operations.
Module enablement controls, gated by Security:AdminGroups.
Each module has its own config page (linked in the sidebar) with:
- Module Status — enable/disable the module (global admin only)
- Section Access — which AD groups can use the module (global admin only)
- Configuration — module-specific settings (config fields)
- Module Admins — AD groups that can configure this module without global admin
Changes are persisted to config/modules-enabled.json, config/sectionaccess.json, and config/module-config-{ModuleId}.json and take effect immediately.
Global admins see all module config links; module admins see only their delegated modules.
A read-only JSONL audit log viewer, also gated by Security:AdminGroups.
- Browse audit events by date (one file per rotation period).
- Filter by category, user, IP address, and result (Success/Failed).
- Displays full event detail in an expandable JSON view.
Reset user MFA authentication methods via Microsoft Graph API.
- Lists all registered authentication methods for a user (phone, FIDO2, authenticator app, etc.)
- Confirmation step before deletion
- Deletes all non-password authentication methods in one operation
- Requires: Separate Graph app registration with
UserAuthenticationMethod.ReadWrite.Allapplication permission (per-module registration pattern) - Section access key:
MfaReset
Search and manage distribution lists, mail-enabled security groups, and Microsoft 365 groups.
- Three backends depending on group type:
- EXO — Cloud-only distribution and mail-enabled security groups
- On-prem AD — Synced groups modified via Delinea-authenticated AD operations
- Graph API — Microsoft 365 (Unified) groups
- Add/remove members, view group details
- Requires:
GroupManagementOnPremsection access for on-premises group modifications - Section access key:
GroupManagement
Create, modify, and delete Microsoft 365 groups via Graph API.
- Full lifecycle management for M365 (Unified) groups
- Requires: Graph app registration with
Group.ReadWrite.Allpermission - Section access key:
M365GroupManagement
Dedicated bulk member replacement for broadcast distribution lists.
- CSV upload of new member list
- Resolves all entries before applying changes
- Confirmation step showing add/remove diff
- Atomic replacement via
Set-ADGroup -Replace(full member swap in one AD operation) - Uses Delinea credentials for Active Directory operations
- Section access key:
Comms10k
View and edit allowlisted Active Directory attributes for on-premises user accounts.
- Tiered access control with three granular permission levels (Level1, Level2, Level3)
- Configurable attribute allowlist via
config/ad-editable-attributes.json - Optional search base boundary restrictions
- Uses Delinea credentials for Active Directory operations
- Section access keys:
ADAttributeEditor,ADAttributeEditorLevel1,ADAttributeEditorLevel2,ADAttributeEditorLevel3
Bulk update Exchange licensing SKU assignments (extensionAttribute11) via CSV upload.
- CSV upload with validation against allowed license types
- Configurable allowed license values (default: E5, EOP2+SOP2, F3, F3+EOP1)
- Uses Delinea credentials for Active Directory operations
- Section access key:
LicensingUpdates
Room mailbox metadata configuration and booking policy management.
- Set room properties: city, building, capacity, floor label, timezone
- Apply booking policy templates (the
RoomTypeenum inModels/ConferenceRoomModels.cs):- Standard — Open auto-booking (AllBookInPolicy), 180-day window
- Video — Like Standard plus a video-room additional response
- Restricted — Delegate/group-gated booking (BookInPolicy), 180-day window, site-aware
- Exception — Restricted to an exception group, 1080-day window
- CEO — CEO-group only; always clears existing calendar permissions, 1080-day window
- Executive — Exec VP/admin groups, 1080-day window
- CSV bulk upload for multi-room setup
- Room list management (add/remove rooms from room lists)
- Section access key:
ConferenceRooms
Rapidly disable a compromised user account across on-prem AD and Entra ID with session revocation.
- Disables the AD account and revokes Entra ID sessions in a single workflow
- Security team notification on every disable action
- Requires: AD Delinea secret for account disable and Graph Delinea secret for session revocation
- Section access key:
EmergencyDisable
Authorize or deauthorize DHCP servers in Active Directory.
- Authorize a server by IP/hostname to allow DHCP service in the domain
- Deauthorize a server to revoke DHCP serving rights
- Confirmation dialog (high-privilege operation)
- Requires: Module-specific Delinea secret (Enterprise Admin credentials)
- Section access key:
DhcpAuthorization
Manage Entra ID Conditional Access named locations via Microsoft Graph API.
- Create, edit, and delete IP range locations (IPv4/IPv6 CIDR)
- Create, edit, and delete country/region locations
- Mark locations as trusted
- Full pagination support for large tenants
- Requires: Graph app registration with
Policy.ReadWrite.ConditionalAccesspermission - Section access key:
NamedLocations
Identify the source machine of an account lockout and log the affected accounts off the implicated or scoped domain computers. Disabled by default; both permissions fail-closed.
- Discover lockout sources from Security 4740 events on the PDC Emulator (or named DCs)
- Log selected accounts off the implicated source machines
- Scoped sweep: log accounts off every machine in an OU/computer list (with a
MaxSweepTargetscap and a WinRM fan-out throttle) - Dry-run by default; execution requires a ticket number and typed "LOG OFF" confirmation
- Targets are re-resolved through Protected Principals with an immutable-GUID re-check immediately before logoff; all paths audited and traced
- Granular
Logoffpermission gates execution separately fromAccess - Requires: module-scoped AD credential (
DelineaSecretId) with rights to read lockout events, query sessions, and log off sessions; WinRM to target machines - Section access keys:
AccountLockoutRemediation,AccountLockoutRemediationLogoff
- Windows Authentication — Seamless SSO with Active Directory
- Group-based Authorization — Restrict access to specific AD groups per module
- Self-grant Prevention — Users cannot grant themselves permissions
- Protected User Lists — Block modifications to C-suite/executive mailboxes (with AD group expansion)
- Audit Logging — JSONL format logs with full operation details (always active)
- Extended Diagnostic Logging — Configurable log level (None/Error/Warning/Info/Debug) with separate log file, viewable in Event Log page
- Email Notifications — Admin notifications on all operations, optional user notifications
- Fail-closed Design — Corrupt config or credential failures block operations rather than bypassing security
- Windows Server 2016+ (IIS with Windows Authentication)
- .NET 10 SDK and ASP.NET Core 10 Runtime (Windows Hosting Bundle)
- PowerShell 7.4+
- ExchangeOnlineManagement PowerShell Module (v3.7.0+ required for Get-MessageTraceV2)
- SQLite command-line tools (
sqlite3.exeon PATH) — required by the deploy/promote scripts to make a verified, consistent online backup of the runtime config database (config/exchangeadmin.db) before each deploy. Install withwinget install SQLite.SQLite. The deploy/promote scripts fail fast ifsqlite3is not on PATH rather than fall back to an unverified file copy. (The app itself bundles its own SQLite engine and does not need this; it is a deployment-host dependency only.)
- Azure App Registration with:
Exchange.ManageAsAppAPI permission (application permission, admin consented)- Certificate authentication configured
- Service principal assigned Exchange Administrator role or scoped RBAC role
- Certificate installed in server's certificate store (
LocalMachine\MyorCurrentUser\My)- Must match
CertificateSubjectin appsettings.json - Private key must be accessible to IIS app pool identity
- Must match
- AD Security Groups for authorization (e.g.,
IT-Helpdesk,Exchange-Admins) - Users must be authenticated via Windows Authentication (domain-joined)
- ActiveDirectory PowerShell Module (RSAT-AD-PowerShell) required for migration eligibility checks
- IIS App Pool Identity must have AD read permissions to query user group memberships
- The deployment script requires
-ServiceAccounton fresh install (prompts interactively if omitted); on upgrade it retains the existing app pool identity - Configure IIS manually if using ApplicationPoolIdentity or a gMSA instead
- The deployment script requires
Install .NET 10:
# Download and install .NET 10 SDK
# https://dotnet.microsoft.com/download/dotnet/10.0
# Download and install ASP.NET Core Windows Hosting Bundle
# https://dotnet.microsoft.com/download/dotnet/10.0Install IIS Features:
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer -All
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WindowsAuthentication -All
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET45 -AllInstall PowerShell Modules:
# Exchange Online Management module
Install-Module -Name ExchangeOnlineManagement -Force -AllowClobber -Scope AllUsers
# Active Directory module (required for migration eligibility checks)
Install-WindowsFeature RSAT-AD-PowerShell- Create Azure App Registration with certificate authentication
- Grant
Exchange.ManageAsAppAPI permission (admin consent required) - Assign service principal Exchange Administrator role in Entra ID
- Install certificate on web server
Copy appsettings.json.sample to appsettings.json and configure:
{
"ExchangeOnline": {
"AppId": "your-app-id-here",
"Organization": "yourorg.onmicrosoft.com",
"CertificateSubject": "CN=EXO-Automation"
},
"Audit": {
"LogRoot": "D:\\Logs\\ExchangeAdminWeb",
"RotationPeriod": "daily",
"MaxFileMB": 50,
"MaxFilesPerPeriod": 5
},
"OperationTrace": {
"Enabled": true
},
"Email": {
"SmtpHost": "smtp.yourcompany.com",
"SmtpPort": 25,
"SmtpUseSsl": false,
"FromAddress": "exchangeadmin@yourcompany.com",
"FromName": "Exchange Admin",
"AdminNotificationEmail": "itadmin@yourcompany.com",
"NotifyUsersOnPermissionGrant": false
},
"Security": {
"AllowedGroups": [
"DOMAIN\\IT-Helpdesk",
"DOMAIN\\Exchange-Admins",
"DOMAIN\\Migration-Team"
],
"AdminGroups": [
"DOMAIN\\Exchange-Admins"
]
}
}Important: appsettings.json is excluded from git for security. Never commit production credentials.
Required: Audit:LogRoot must be set to an absolute path outside the deploy folder
(the app deploys to D:\inetpub\<app name>, which is the content root; logs must not live
under it or under wwwroot). There is no baked-in default: the app will not start if
Audit:LogRoot is unset or blank, so audit logs are never silently misplaced. Each
environment sets its own value.
Generic / new environments — use the standalone product installer in elevated
PowerShell. It is environment-neutral, prompts for environment-specific values, and
preserves existing appsettings.json and config/ fragments on update:
.\tools\Install-ExchangeAdminWeb.ps1 # interactive fresh install or update
.\tools\Install-ExchangeAdminWeb.ps1 -PlanOnly # dry run, no changesADI environment only — deploy.ps1 is the ADI-specific deployment helper (it targets
ADI aliases/app pools and the ExchangeAdminWebDev dev path). Do not use it in other
environments; it is intentionally separate from the standalone installer.
.\deploy.ps1The deploy/install scripts will:
- Stop the application pool
- Build and publish the application
- Create/configure the IIS application pool
- Create the web application under Default Web Site
- Enable Windows Authentication and disable Anonymous Authentication
- Grant app pool access to certificate private key
- Grant app pool write access to audit log folder
- Restart the application pool
Default URL: http://yourserver/ExchangeAdminWeb
The deploy script configures Windows Authentication automatically. If authentication issues occur:
# Ensure only NTLM provider is enabled
Import-Module WebAdministration
Clear-WebConfiguration -Filter '/system.webServer/security/authentication/windowsAuthentication/providers' -PSPath 'IIS:\' -Location 'Default Web Site/ExchangeAdminWeb'
Add-WebConfigurationProperty -Filter '/system.webServer/security/authentication/windowsAuthentication/providers' -Name '.' -Value @{value='NTLM'} -PSPath 'IIS:\' -Location 'Default Web Site/ExchangeAdminWeb'
Set-WebConfigurationProperty -Filter '/system.webServer/security/authentication/windowsAuthentication' -Name 'useAppPoolCredentials' -Value 'True' -PSPath 'IIS:\' -Location 'Default Web Site/ExchangeAdminWeb'- EXO Connection Pool: 5 pooled PowerShell runspaces for Exchange Online operations; connections idle longer than 20 minutes are automatically recycled.
- Bulk CSV Optimization: Bulk operations borrow a single pooled session for the entire batch (not per-row), reducing 50-row CSV processing from minutes to seconds.
- On-Prem Throttle: On-premises Exchange operations limited to 2 concurrent PSSession connections with retry (3 attempts, exponential backoff).
- Blazor Server: Interactive Server rendering mode with per-circuit state.
- Audit + Operation Trace: Append-only JSONL files rotated daily/weekly/monthly; every audit transaction includes a correlated
operationIdplus structuredoperation.*records for SIEM ingestion. - Extended Logging: Separate JSONL diagnostic log with runtime-configurable level (Admin Settings). Viewable from Event Log page.
- Credential Management: Delinea Secret Server SDK auth via Windows PasswordVault. Per-module secrets isolated in Secret Server.
- Thread Safety: PermissionValidator uses immutable collections with atomic swap; SectionAccessService uses in-memory cache invalidated on save.
Each module is gated by its own section access groups. Security:AllowedGroups is only a backward-compatibility fallback for modules that are not fail-closed when no config/sectionaccess.json or legacy Security:SectionAccess block exists:
"AllowedGroups": [
"DOMAIN\\IT-Helpdesk",
"DOMAIN\\Exchange-Admins",
"DOMAIN\\Migration-Team"
]- Groups are checked using Windows role claims
- Both simple names (
IT-Helpdesk) and domain-qualified names (DOMAIN\IT-Helpdesk) are supported - Once section access is configured, the section's groups are the gate; users do not also need to be in
AllowedGroups - Fail-closed modules deny access until explicit section access groups are configured
Members of Security:AdminGroups can access Admin Settings. Admin Event Log is controlled by its own EventLog section access policy:
"AdminGroups": ["DOMAIN\\Exchange-Admins"]- Empty or missing = Admin Settings is inaccessible to everyone (fail-closed).
Each application feature is independently gated by AD group membership via its section access groups, managed on each module's config page (/module-config/{ModuleId}). The config is stored in config/sectionaccess.json:
"SectionAccess": {
"MailboxPermissions": ["DOMAIN\\Exchange-Admins"],
"CalendarPermissions": ["DOMAIN\\Exchange-Admins"],
"MailboxPermissionsOnPrem": ["DOMAIN\\Exchange-Admins"],
"CalendarPermissionsOnPrem": ["DOMAIN\\Exchange-Admins"],
"MigrationCheck": ["DOMAIN\\Exchange-Admins", "DOMAIN\\Migration-Team"],
"MigrationCreate": ["DOMAIN\\Exchange-Admins", "DOMAIN\\Migration-Team"],
"MigrationManage": ["DOMAIN\\Exchange-Admins"],
"DelegationReport": ["DOMAIN\\Exchange-Admins", "DOMAIN\\IT-Helpdesk"],
"MessageTrace": ["DOMAIN\\Exchange-Admins", "DOMAIN\\IT-Helpdesk"],
"RecipientLookup": ["DOMAIN\\Exchange-Admins", "DOMAIN\\IT-Helpdesk"],
"OutOfOffice": ["DOMAIN\\Exchange-Admins"],
"MfaReset": ["DOMAIN\\Exchange-Admins"],
"NamedLocations": ["DOMAIN\\Exchange-Admins"],
"GroupManagement": ["DOMAIN\\Exchange-Admins"],
"GroupManagementOnPrem": ["DOMAIN\\Exchange-Admins"],
"Comms10k": ["DOMAIN\\Exchange-Admins"],
"ConferenceRooms": ["DOMAIN\\Exchange-Admins"],
"DhcpAuthorization": ["DOMAIN\\Exchange-Admins"],
"EventLog": ["DOMAIN\\Exchange-Admins"]
}- Fail-closed: when section access is configured, missing or empty section keys deny access to that feature for all users
- On-prem sections (
MailboxPermissionsOnPrem,CalendarPermissionsOnPrem) are always fail-closed even when noSectionAccessconfiguration exists at all - Migration hierarchy:
MigrationCreaterequires MigrationCheck groups AND MigrationCreate groups;MigrationManagerequires MigrationCheck groups AND MigrationManage groups - NavMenu links and Home page cards are hidden for unauthorized sections
- Section access is managed per-module via
/module-config/{ModuleId}(collapsible tree in sidebar)
Prevent modifications to specific mailboxes. Configure via Module Config page under Mailbox Permissions → Excluded Users field (comma-separated). Applies to both mailbox and calendar permission operations:
C-Suite, Board of Directors, ceo@example.com
- Supports distribution groups (auto-expanded to members on first use, cached 30 min)
- Supports individual users (SMTP, UPN, or SamAccountName)
- All formats are intelligently matched (case-insensitive)
- Read only from the MailboxPermissions module config; the legacy
Security:ExcludedUsersappsettings fallback was retired 2026-07-28 (it was invisible to the Protected Principals admin UI) - Cache is invalidated immediately when module config is saved via UI
All operations are logged as JSON Lines (.jsonl). Business audit records and diagnostic operation trace records are separate files:
Audit location: <Audit:LogRoot>\ExchangeAdminWeb\exchangeadmin_YYYYMMDD.jsonl
Trace location: <Audit:LogRoot>\ExchangeAdminWeb\exchangeadmin_YYYYMMDD_trace.jsonl
(Audit:LogRoot is a required setting; see the configuration section above.)
Common audit fields: eventType, operationId, ts, user, ip, action, category, result, ticket
Category-specific fields:
- MailboxPermission:
target,affectedUser,permissionType,autoMapping - CalendarPermission:
target,affectedUser,accessRight - MigrationCheck:
target,status,reasons - MigrationBatch:
batchName,direction,userCount,autoStart,autoComplete - MigrationAction:
target - Lookup:
target - AdminSettings:
section,added,removed - MfaReset:
target,methodsRemoved - GroupManagement:
target,member,operation,backend - Comms10k:
target,membersAdded,membersRemoved - ConferenceRooms:
target,properties,policyTemplate - DhcpAuthorization:
target,operation
Null fields are omitted. error appears only on failure.
Operation trace records: Each audit transaction writes structured trace events with the same operationId:
operation.start— transaction accepted by the logging pipelineoperation.step— significant step such asAuditWritten, plus shared backend steps where availableoperation.complete— final transaction result and elapsed duration
Trace fields are SIEM-friendly: eventType, operationId, parentOperationId, module, action, stage, backend, command, target, ticket, result, durationMs, details, and errorType. Raw exception messages are not written to trace records. Secret-like detail keys (password, secret, token, apiKey, clientSecret) are masked as ***. Shared backend services also emit standalone operation trace records when no operation scope is active, so vault and EXO connection failures are still visible in the trace stream. Disable trace records with OperationTrace:Enabled = false if needed; audit records remain active.
Rotation:
daily(default): New file each dayweekly: New file each weekmonthly: New file each monthAudit:MaxFileMBandAudit:MaxFilesPerPeriodcap both audit and trace file growth
Extended diagnostics: Admin Settings can enable a separate UI-viewable diagnostic stream for troubleshooting Delinea/on-prem connectivity. It defaults to off, writes to exchangeadmin_YYYYMMDD_extended.jsonl, rotates at 10 MB by default, and keeps 5 files per day including the active file. Tune with ExtendedLog:MaxFileMB and ExtendedLog:MaxFilesPerDay if needed. The queue is bounded and drops oldest entries under sustained bursts, so this is best-effort diagnostics, not an audit trail. Keep Admin Event Log access tightly scoped.
The app uses one shared Delinea API bootstrap credential, then each module retrieves its own privileged secret by module config. Do not put on-prem Exchange, AD, DHCP, or Graph application credentials in global appsettings.
"Delinea": {
"SecretServerUrl": "https://secretserver.yourcompany.com/secretserver",
"CredentialTarget": "Delinea_Client"
}| Key | Purpose |
|---|---|
SecretServerUrl |
Base URL of Delinea/Thycotic Secret Server |
CredentialTarget |
Windows Credential Manager entry name storing Delinea API client credentials |
Modules that need privileged on-prem or AD access expose their own DelineaSecretId field on that module's config page. Those secrets must contain fields named Username, Password, and Domain. Graph-backed modules use their own Delinea secret containing Tenant ID, Application ID, and Client Secret.
Module secrets must be directly readable by the Delinea API bootstrap credential and must not require checkout, approval, or another interactive Secret Server workflow. The web app cannot complete a checkout prompt during background API calls.
"Application": {
"PathBase": "/ExchangeAdminWeb",
"ContactEmail": "exchangeadmin@yourcompany.com",
"PublicBaseUrl": "https://yourserver/ExchangeAdminWeb"
}| Key | Purpose |
|---|---|
Application:PathBase |
IIS sub-application path |
Application:ContactEmail |
Displayed in the UI as the support contact (nav footer) |
Application:PublicBaseUrl |
Absolute external URL of the app, used to build links in notification emails. Optional: when unset or not an absolute URL, emails describe the page in prose instead of linking to it (an email client cannot resolve a relative path, so a partial URL would be a dead link). Set it per environment - dev and prod must not share one value. |
Admin Notifications (always sent):
- Every permission operation (success or failure)
- Includes full details: who, what, when, IP address, ticket number
User Notifications (optional):
- Set
NotifyUsersOnPermissionGrant: trueto enable - Sent when permissions are granted or removed
- Friendly email with mailbox details and security notice
Add/Remove:
Target,User,FullAccess,SendAs,AutoMapping
helpdesk@company.com,john.doe@company.com,True,True,True
finance@company.com,jane.smith@company.com,True,False,FalseSee docs/CSV_FORMAT.md for complete documentation.
Set:
Target,User,AccessRight
exec@company.com,assistant@company.com,Editor
manager@company.com,team@company.com,ReviewerRemove:
Target,User
exec@company.com,old-assistant@company.comConfigure email notifications, group-based access control, self-grant prevention, protected user lists, and audit logging in appsettings.json.
- Verify Windows Authentication is enabled in IIS for the application
- Check user is member of an allowed AD group
- Verify
AllowedGroupsconfiguration in appsettings.json - Check IIS logs:
C:\inetpub\logs\LogFiles\W3SVC1\
- Verify certificate is installed and accessible to app pool identity
- Check certificate subject matches
CertificateSubjectin appsettings.json - Verify app registration has
Exchange.ManageAsApppermission - Verify service principal has Exchange Administrator role
- Check application logs:
D:\inetpub\ExchangeAdminWeb\logs\app-*.log
- Ensure ExchangeOnlineManagement module is installed
- Verify service principal permissions in Exchange Online
- Check user exists in Exchange Online (Get-Mailbox)
- Check SMTP host/port is accessible from web server
- Verify firewall allows outbound SMTP traffic
- Check application logs for SMTP errors
- Test SMTP credentials if using authenticated SMTP
- Ensure ActiveDirectory PowerShell module is installed:
Install-WindowsFeature RSAT-AD-PowerShell - Verify IIS app pool identity has AD read permissions
- If using ApplicationPoolIdentity, ensure server computer account has domain access
- To use domain service account:
Import-Module WebAdministration Set-ItemProperty "IIS:\AppPools\ExchangeAdminWeb" -Name processModel.identityType -Value 3 Set-ItemProperty "IIS:\AppPools\ExchangeAdminWeb" -Name processModel.userName -Value "DOMAIN\svc_exchangeadmin" Set-ItemProperty "IIS:\AppPools\ExchangeAdminWeb" -Name processModel.password -Value "<secure-password>"
- Check application logs for detailed AD errors:
D:\inetpub\ExchangeAdminWeb\logs\app-*.log - Test AD access: Run
Get-ADUser -Identity usernamein PowerShell as the app pool identity
- Clone repository
- Copy
appsettings.json.sampletoappsettings.json - Configure settings (or use appsettings.Development.json)
- Run:
dotnet run - Access:
http://localhost:5226
Note: Windows Authentication works automatically on domain-joined dev machines using IIS Express or Kestrel with NegotiateDefaults.
ExchangeAdminWeb/
├── Modules/ # Descriptor-based module system (the architecture)
│ ├── ModuleCatalog.cs # All module descriptors (nav, auth, enablement)
│ └── AdminModuleDescriptor.cs # Descriptor record contract
├── Components/ # Blazor components
│ ├── Pages/ # One Razor page per module (MailboxPermissions, ConferenceRooms, ...)
│ └── Layout/ # Layout components
├── Authorization/ # Policy handlers and authorization wiring
├── Middleware/ # Request pipeline middleware
├── Models/ # Data models and enums
├── Services/ # Per-feature services (one per module + shared infra)
│ ├── AuditService.cs # JSONL business audit records
│ ├── OperationTraceService.cs # Correlated operation trace records
│ ├── JsonlLogService.cs # Shared JSONL writer
│ ├── ExoConnectionPool.cs # Pooled Exchange Online connections
│ ├── EmailService.cs # SMTP notifications
│ └── PermissionValidator.cs # Security validation
├── config/ # Runtime config fragments (preserved across deploys)
├── tools/ # Standalone installer + ops scripts (Install-ExchangeAdminWeb.ps1)
├── tests/ps/ # Pester tests for PowerShell
├── docs/ # ProjectConstitution, specs, plans
├── .agents/ # Agent guidance (state.md, decisions.md, repo-map.json)
├── ExchangeAdminWeb.Tests/ # xUnit test project
├── Program.cs # Application entry point
├── web.config # IIS configuration
└── deploy.ps1 # ADI-specific deploy helper (generic install: tools/Install-ExchangeAdminWeb.ps1)
- ASP.NET Core 10 - Blazor Server with Interactive Server rendering
- Authentication - Windows Authentication (Negotiate/NTLM)
- Authorization - Role-based with AD groups
- Exchange Operations - PowerShell SDK with ExchangeOnlineManagement module
- Logging - Serilog (file + console)
- Email - MailKit/MimeKit
- CSV - CsvHelper
For internal administrative use. Configure all environment-specific settings before deployment.
For issues or questions, contact the IT Service Desk or create an issue in the repository.