Graph Audit Log Processor v1.0.1
PAX Graph Audit Log Processor - Release Note v1.0.1
Overview
PAX Graph Audit Log Processor v1.0.1 is a major feature release that expands the capabilities of the Microsoft Graph-based usage data collection tool. Building on v0.1.2's foundation, this release introduces Excel workbook export, MAC (Microsoft Admin Center) licensing endpoints, granular endpoint selection, and substantial usability enhancements—transforming the tool from a basic CSV exporter into a comprehensive M365 analytics platform.
Key Improvements in v1.0.1
This release delivers 5 major feature categories focused on usability, data breadth, and output flexibility:
-
Excel Workbook Export with Append Mode
- New
-ExportWorkbookswitch creates multi-sheet Excel workbooks with formatted tables and auto-fit columns -AppendWorkbookmode adds new data to existing workbooks without overwriting previous sheets- Automatic ImportExcel module installation and validation
- Workbook conflict detection with
-Forceoverride - Ideal for recurring exports, trend analysis, and executive dashboards
- New
-
MAC Licensing Endpoints (2 New Endpoints)
- MACCopilotLicensing: Per-user Copilot license assignments with three-tier SKU detection
- MACLicenseSummary: Tenant-wide license capacity summary with enabled/consumed/available counts
- Comprehensive service plan expansion showing granular license components
- Purpose-built for license optimization, compliance audits, and usage-to-license correlation
-
Granular Endpoint Selection (10 New Parameters)
- Individual switches for each major endpoint category
- Exclusion controls for fine-tuned data collection
-IncludeCustomEndpointsfor advanced scenarios- Replaces
-IncludeCuratedall-or-nothing approach with precise control
-
Enhanced Data Processing
- Improved obfuscation detection with SHA-256 hash pattern recognition
- Better array flattening for multi-value license and service plan fields
- Expanded Entra user attribute collection (35+ properties)
- Optimized CSV parsing with UTF-8 BOM handling and comma-in-field robustness
-
Usability & Reliability Improvements
- Automatic Graph API disconnection on script exit
- Better parameter validation with detailed error messages
- Enhanced logging with endpoint-by-endpoint progress tracking
- Script size optimization: 1785 → 3182 lines (78% increase due to new features)
Why This Release Matters
v1.0.1 transforms the Graph Audit Log Processor from a data collection tool into an analytics platform. Key business impacts:
- Excel Integration: Eliminates CSV → Excel manual conversion; workbooks are dashboard-ready with formatted tables
- Append Workflow: Supports recurring exports (weekly, monthly) with historical trend tracking in single workbooks
- License Optimization: MAC licensing endpoints enable cost analysis by correlating active users with assigned licenses
- Selective Data Collection: Granular switches reduce API calls, improve performance, and enable scenario-specific exports
- Automation-Ready: Append mode + certificate auth + ImportExcel auto-install = fully hands-off recurring pipelines
Organizations can now:
✅ Build executive dashboards with multi-period trend analysis
✅ Perform license audits with MACCopilotLicensing + MACLicenseSummary correlation
✅ Optimize API performance by querying only required endpoints (vs. all 17)
✅ Eliminate manual Excel formatting (workbooks have formatted tables, auto-fit columns, sheet names)
Detailed Changes in v1.0.1
🎯 New Features
1. Excel Workbook Export
Parameters:
-ExportWorkbook: Creates Excel workbook with each endpoint as a separate sheet-AppendWorkbook: Adds data to existing workbook without overwriting existing sheets-Force: Overrides workbook conflict warnings (use with-ExportWorkbook)
Example:
# Initial export
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D7 -OutputPath "C:\Reports" -OutputFileName "M365_Usage.xlsx" -Auth DeviceCode -IncludeCopilotUsage -ExportWorkbook
# Next week: Append new data
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D7 -OutputPath "C:\Reports" -OutputFileName "M365_Usage.xlsx" -Auth DeviceCode -IncludeCopilotUsage -AppendWorkbook2. MAC Licensing Endpoints
MACCopilotLicensing: Per-user Copilot license assignments with three-tier SKU detection (Standard, Pro, Developer/Testing)
MACLicenseSummary: Tenant-wide license capacity summary across all SKUs
Example:
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D30 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeCopilotUsage -IncludeMACCopilotLicensing -IncludeMACLicenseSummary -ExportWorkbook3. Granular Endpoint Selection
New Parameters:
-IncludeCopilotUsage: Explicitly include Copilot usage endpoint-IncludeM365AppUserDetail: Include M365 Apps user detail (default endpoint)-IncludeOutlookActivity: Include Email Activity + Email App Usage-IncludeTeamsActivity: Include Teams User Activity-IncludeSharePointActivity: Include SharePoint Activity + SharePoint Site Usage-IncludeOneDriveActivity: Include OneDrive Activity + OneDrive Usage-IncludeMACCopilotLicensing: Include per-user Copilot license assignments-IncludeMACLicenseSummary: Include tenant-wide license capacity summary
Example:
# Copilot-focused export
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D30 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeCopilotUsage -IncludeMACCopilotLicensing -IncludeMACLicenseSummary -ExportWorkbook
# Collaboration workloads only
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D7 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeTeamsActivity -IncludeSharePointActivity -IncludeOneDriveActivity -ExportWorkbook🔧 Enhancements
- Automatic Graph Disconnection: Script automatically disconnects from Microsoft Graph on exit
- Improved Obfuscation Detection: SHA-256 hash pattern recognition
- Enhanced Logging: Endpoint-by-endpoint progress tracking with record counts
- Parameter Validation: Workbook conflict detection prevents accidental overwrites
- ImportExcel Module Management: Auto-install with CurrentUser scope
📊 Endpoint Summary Changes
Total Endpoints:
- v0.1.2: 15 endpoints
- v1.0.1: 17 endpoints (added MACCopilotLicensing, MACLicenseSummary)
Endpoint Categories (v1.0.1):
- Copilot: CopilotUsage, MACCopilotLicensing (2 endpoints)
- M365 Apps: M365AppUserDetail, M365Activations, M365ActiveUsers (3 endpoints)
- Teams: TeamsUserActivity (1 endpoint)
- Outlook: EmailActivity, EmailAppUsage (2 endpoints)
- OneDrive: OneDriveActivity, OneDriveUsage (2 endpoints)
- SharePoint: SharePointActivity, SharePointSiteUsage (2 endpoints)
- Yammer: YammerActivity, YammerDeviceUsage, YammerGroupsActivity (3 endpoints)
- Licensing: MACLicenseSummary (1 endpoint)
- Entra: EntraUsers (1 endpoint)
🐛 Bug Fixes
- Workbook Overwrite Protection: Added conflict detection; requires
-Forceto overwrite - ImportExcel Missing Dependency: Automatic installation with CurrentUser scope
- Parameter Conflict Handling: Added validation; displays error if both
-ExportWorkbookand-AppendWorkbookused - Excel Filename Extension: Automatic .xlsx enforcement
- Graph Session Cleanup:
try/finallyblock ensuresDisconnect-MgGraphon all exit paths
📋 Known Limitations
- Period Queries Only: v1.0.1 supports period queries only (D7/D30/D90/D180/ALL)
- Graph Endpoint Limitation: Graph API constraint - only supports period queries
- Entra User Snapshot: Retrieves current attributes (not historical)
- Append Mode Sheet Conflicts: Will fail if sheet name already exists
Installation & Upgrade Instructions
📥 Download Script
Direct Download:
PAX_Graph_Audit_Log_Processor_v1.0.1.ps1
🔧 Prerequisites
- PowerShell: Version 7.0 or later (Windows, macOS, Linux)
- Microsoft.Graph.Authentication Module:
Install-Module Microsoft.Graph.Authentication -Scope CurrentUser -Force
- ImportExcel Module (auto-installs if
-ExportWorkbookused):Install-Module ImportExcel -Scope CurrentUser -Force
- Graph API Permissions:
Reports.Read.All,User.Read.All,AuditLog.Read.All(optional)
⬆️ Upgrading from v0.1.2
Breaking Changes: None (v1.0.1 is fully backward-compatible)
Parameter Changes:
-IncludeCopilotrenamed to-IncludeCopilotUsage(old name still works via alias)-IncludeCuratednow includes 17 endpoints (was 15)
Migration Example:
# v0.1.2 command
.\PAX_Graph_Audit_Log_Processor_v0.1.2.ps1 -Period D30 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeCopilot
# v1.0.1 equivalent with Excel output
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D30 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeCopilotUsage -ExportWorkbookQuick Start Examples
Example 1: Basic Copilot Usage Export (Excel)
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D7 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeCopilotUsage -ExportWorkbookResult: Excel workbook with 2 sheets (CopilotUsage, M365AppUserDetail)
Example 2: Copilot + Licensing Analysis
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D30 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeCopilotUsage -IncludeMACCopilotLicensing -IncludeMACLicenseSummary -ExportWorkbookResult: Excel workbook with 4 sheets
Example 3: Recurring Weekly Append
# Week 1
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D7 -OutputPath "C:\Reports" -OutputFileName "Weekly_Usage.xlsx" -Auth DeviceCode -IncludeCopilotUsage -ExportWorkbook
# Week 2
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D7 -OutputPath "C:\Reports" -OutputFileName "Weekly_Usage.xlsx" -Auth DeviceCode -IncludeCopilotUsage -AppendWorkbookResult: Single workbook with multi-week trend data
Example 4: Comprehensive Data Collection
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D90 -OutputPath "C:\Reports" -Auth DeviceCode -ExportWorkbookResult: Excel workbook with 17 sheets (all endpoints)
Example 5: Selective Export (Collaboration Workloads)
.\PAX_Graph_Audit_Log_Processor_v1.0.1.ps1 -Period D30 -OutputPath "C:\Reports" -Auth DeviceCode -IncludeTeamsActivity -IncludeSharePointActivity -IncludeOneDriveActivity -ExportWorkbookResult: Excel workbook with 6 sheets
Documentation
Full Documentation:
PAX_Graph_Audit_Log_Processor_Documentation_v1.0.1.md
Topics Covered:
- Excel workbook export and append workflows
- MAC licensing endpoint usage and SKU detection
- Granular endpoint selection strategies
- Authentication setup (Device Code + Certificate)
- Parameter reference and usage examples
- Troubleshooting common errors
Summary
PAX Graph Audit Log Processor v1.0.1 represents a major evolution from v0.1.2's CSV-centric approach to a comprehensive M365 analytics platform. With Excel workbook export, MAC licensing endpoints, and granular endpoint selection, this release empowers organizations to:
✅ Build executive dashboards with pre-formatted Excel tables and multi-period trend analysis
✅ Optimize license costs by correlating active usage with assigned Copilot licenses
✅ Automate recurring reports with append mode for historical tracking
✅ Improve performance by querying only required endpoints (vs. all 17)
✅ Simplify data workflows with automatic Graph disconnection and ImportExcel management
This release transforms the tool from a data collector into an analytics enabler—critical for organizations scaling Microsoft 365 Copilot deployments and requiring actionable insights from usage and licensing data.
Support & Feedback
For questions, feedback, or assistance with the PAX Graph Audit Log Processor, please refer to the comprehensive documentation included with this release.
License: MIT
Release Date: October 30, 2025
Script Version: 1.0.1
Author: Microsoft Copilot ROI Advisory Team (copilot-roi-advisory-team-gh@microsoft.com)