logo
search
Account Security Problems

How to Export and Automate Microsoft 365 Recent Activity Data

Maira MehtabMaira Mehtab Sep 21, 2026 869 views

Question details

The user needs to export their Recent activity or My sign-ins data into a spreadsheet and automate the retrieval process to maintain a continuous activity tracker.

Product
Microsoft 365
Device & OS
not provided
Scenario
Creating an automated tracking spreadsheet for Microsoft 365 account sign-in activities and history.
Observed behavior
Regular users are unable to download sign-in logs directly from the My sign-ins page, requiring an alternative or administrative method to retrieve the data.
Before you start

Verify that you have Microsoft Entra administrator privileges, as standard user accounts do not have the required permissions to directly download sign-in logs or configure API-based automation.

Solution 1

Manually Export Sign-in Logs via Microsoft Entra Admin Center

Administrators can bypass the standard user interface and manually download comprehensive user sign-in logs directly from the Entra admin center.

1
Access Microsoft Entra

Log in to the Microsoft Entra admin center using an account with administrator permissions.

2
Navigate to Sign-in Logs

Go to 'Identity' in the left menu, select 'Users', click on 'All users', and then select 'Sign-in logs' under the Activity section.

3
Download the Data

Click the 'Download' button at the top of the logs list and choose to export the activity data as a CSV or JSON file to open in your spreadsheet application.

Free Microsoft Office alternative

Analyze Your Exported Activity Spreadsheets with WPS Office

While retrieving Microsoft 365 sign-in logs requires administrative tools and Power Automate, managing the resulting CSV trackers is simple with WPS Office. It provides a highly compatible, cost-effective alternative for viewing, formatting, and analyzing your security spreadsheets without the heavy subscription costs.

  1. 1. Download and Install: Get WPS Office from the official website and install the suite on your Windows, Mac, or mobile device.
  2. 2. Open Your Tracker: Launch WPS Spreadsheets and open the CSV or Excel file containing your exported Microsoft 365 sign-in data.
  3. 3. Analyze the Logs: Apply built-in filters and conditional formatting to effortlessly review the recent activity data.
100% format compatibility with Microsoft Excel (.xlsx) and CSV files.Completely free, lightweight, and fast-loading spreadsheet editor.Includes advanced data analysis tools, filters, and pivot tables to easily monitor sign-in trends.Seamless cross-platform synchronization to access your trackers anywhere.
microsoft office alternative - wps office

Frequently Asked Questions

Can a regular Microsoft 365 user download their own sign-in logs?

No, standard users do not have the functionality to download sign-in logs directly from the 'My sign-ins' page. Exporting this data requires a Microsoft Entra administrator.

What API endpoint is used to retrieve Microsoft 365 sign-in activity?

Administrators can utilize the Microsoft Graph API endpoint 'GET /auditLogs/signIns' to retrieve comprehensive Azure AD and Microsoft Entra sign-in logs for automation.

Can I export Microsoft 365 audit logs directly to a spreadsheet?

Yes, when manually downloading from the Microsoft Entra admin center, you can choose to export the sign-in logs as a CSV file. This file can be seamlessly opened and analyzed in spreadsheet programs like Microsoft Excel or WPS Spreadsheets.