This report is using data from Purview Audit log and Entra ID exports into two CSV files. The first csv file is storing Copilot Interaction events and other csv is exporting user details (Display Name, UPN, Position, City, Country) for users that have M365 copilot license assigned. Power BI report is reading data from those these two files and can display users Display names or anonymize them. Report contains Overall and Adoption pages that allow M365 Champs to monitor behavior of M365 Copilot licensed users.
- Time of the day interaction
- Application ratio
- Monthly interactions
- Weekly Interactions
- Top active users
- Top sources
- Employee names anonymizer
- Active vs total licenses assigned
- Trend comparison between two departments
- Slicers
- Time range
- Application
- Employee
- Position
- Departments
- M365 Copilot Licenses assigned to users and some history with it :)
- Security Reader role (minimum)
- Member of Purview Role Groups (Audit Reader)
- Power BI Desktop (most recent version) Download link
- Windows PowerShell 7 Download link
- User Departments populated in Entra (Azure AD)
Note
Download all files from Scripts
- Open Audit-Get-Events.ps1 and edit the $logFile (line 29) and $outputFile (line 30) so it matches your desired path.
- Open Audit-Get-Users.ps1 and edit the $csvUserspath (line 23) so it matches your desired path.
- Run PowerShell 7 as Administrator
- Run Audit-Get-Users.ps1 from Windows PowerShell
- Once you get prompted to authenticate, authenticate with an account that has at least Security Reader Permissions (Global Admin will work of course).
- Once the script is complete, the folder will include Copilot_Users.csv that will contain list of users from your tenant that have M365 Copilot License assigned.
- Run PowerShell 7 as Administrator
- Run Audit-Get-Events.ps1 from Windows PowerShell
- Once you get prompted to authenticate, authenticate with an account that has at least Security Reader Permissions (Global Admin will work of course).
- Once the script is complete, the folder will include Copilot_Events.csv that will contain list of all copilot events that exist in your Audit log.
Note
First time you run the Audit-Get-Events.ps1 script may run for long time depending on the number of user interactions in Purview Audit Log. Once it completes, next time you run the same script it will read last event from csv file and use it as start date/time. Default script retrieval setting are 5000 records/24 hours. 5000 records is max batch value. If you expect to have more than 5000/24h records, reduce the number of minutes in script line 43 {$intervalMinutes = 1440} from 1440:
- 1440 - 5000/24 hours
- 720 - 5000/12 hours
- 360 - 5000/4 hours
- Open M365 Copilot Audit Report.pbit with Power BI Desktop
- You will get prompted with M365 Copilot Audit Report configuration screen
- Populate it with parameters captured in Initial configuration section.
- Press Load button and click Connect
- Report will start to pull data from two files
- Once the process is complete, your report will display information
- Save the Report as M365 Copilot Audit Report.pbix to your PC
In case you want to anonymize user Display names in Power BI report:
- Click on the Employee visual
- Click x next to Employee in Visualizations pane to remove employees.
- Tick the box on Anonymous in Data Pane
- Repeat the same steps for Top Active users visual and Top users on Trends page