# Microsoft 365 Copilot Seat Audit from CSV Exports (`natstandridge/m365-copilot-seat-audit`) Actor

Join a current Copilot license roster with Microsoft's Copilot usage CSV. Get dated, evidence-linked inactive seat review candidates and a potential monthly spend figure using your own price. No tenant access or external requests.

- **URL**: https://apify.com/natstandridge/m365-copilot-seat-audit.md
- **Developed by:** [Nathaniel Standridge](https://apify.com/natstandridge) (community)
- **Categories:** Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$100.00 / 1,000 delivered copilot seat review findings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Microsoft 365 Copilot Seat Audit

Review paid Copilot seats using two CSV exports you control. This Actor joins a **current, product-specific Copilot assigned-user roster** to Microsoft's Copilot usage report, then lists seats with a recorded last activity date at least your chosen number of days old. The roster must cover seats assigned **directly and through group-based licensing**. It puts the original CSV row numbers, both source dates, and a potential monthly spend figure beside each finding. It never connects to your tenant, fetches licenses, expands groups or changes a license.

The prefilled `demoSample: true` input is an evergreen **synthetic example**, with `example.com` users and an illustrative $30 seat price. It delivers one example finding and costs $0.10. Set `demoSample` to false and provide your own current CSV exports for a real audit. The demo cannot be mixed with real CSV inputs.

This is a review queue, not a license removal instruction. A quiet seat may serve a business purpose. Your contract may prevent immediate savings, and your actual unit price may differ from Microsoft's public list price.

### Who uses it

An IT administrator, MSP or finance analyst can rerun it monthly before a license review or renewal. The repeated job is identifying **currently assigned** Copilot seats that had no recorded Copilot activity for a chosen interval, while separating stale, missing and masked report data from priced findings.

### Get the reports

1. In the Microsoft 365 admin center, open **Billing → Licenses → Microsoft 365 Copilot** (or the relevant paid Copilot product). Export or create a current assigned-user roster for **that product only** and validate that it includes every paid Copilot seat, whether the license was assigned directly or through a group. Paste a CSV with a `User Principal Name`, `userPrincipalName`, `Email`, or `User name` column into `licenseCsv`. Each row must represent one currently assigned paid Copilot seat. Enter the actual export date in `licenseExportDate`. A tenant-wide user export or a direct-assignment-only roster is not a valid substitute. The Actor performs no license lookup or group expansion to repair an incomplete roster.
2. In **Reports → Usage → Microsoft Copilot → Copilot**, export the per-user usage table for 90 or 180 days. If the portal export does not contain the required columns, the documented Microsoft Graph beta `getMicrosoft365CopilotUsageUserDetail` CSV has them. Paste that CSV into `usageCsv`. Required headers are `Report Refresh Date`, `Report Period`, `User Principal Name`, and `Last Activity Date`. User names must be visible, not privacy-masked.
3. Enter your actual **Copilot add-on unit price per month in USD**. Set `reviewAfterDays` (45 by default) and `maxFindings` (20 by default).

Microsoft's [Copilot usage report documentation](https://learn.microsoft.com/en-us/microsoft-365/admin/activity-reports/microsoft-365-copilot-usage?view=o365-worldwide) explains the CSV export, the meaning of activity, privacy masking and the usual 48-hour lag. The [Graph CSV schema](https://learn.microsoft.com/en-us/graph/api/reportroot-getmicrosoft365copilotusageuserdetail?view=graph-rest-beta) documents the four required headers. Microsoft documents [Copilot assignment through the product details page](https://learn.microsoft.com/en-us/microsoft-365/copilot/copilot-setup-assign-licenses) and [current assigned licenses in Entra user exports](https://learn.microsoft.com/en-us/entra/identity/users/users-bulk-download). Check that the roster is truly current and product-specific; the Actor cannot verify its provenance.

The usage report can retain a person who was licensed during the past 180 days but is **no longer assigned**. The current roster is therefore required. A usage row without a current roster match never produces a paid finding. A current roster row without a matching usage row, or with a blank activity date, is counted as missing/uncertain in `OUTPUT` and does not become a priced finding. Microsoft [documents rare blank last activity dates even for users who briefly used Copilot](https://learn.microsoft.com/en-us/microsoft-365/admin/activity-reports/microsoft-365-copilot-usage?view=o365-worldwide).

### Input and output

`examples/input.json` shows the evergreen synthetic demo input. For a real run, set `demoSample` to false and supply `licenseCsv`, `usageCsv`, `licenseExportDate`, and `unitPriceMonthly`. Both CSVs must be from the last seven days, within seven days of each other, and have at most 5,000 data rows and 2 MiB UTF-8 each. The report period must cover `reviewAfterDays`.

One dataset row is one currently licensed person with an old, dated Copilot activity observation. The row includes:

- `userPrincipalName`, `lastActivityDate`, `inactiveDaysAtRefresh`, `recommendation` and a `demoSample` marker
- `licenseCsvRow`, `usageCsvRow`, `licenseExportDate` and `usageReportRefreshDate` for verification
- `potentialMonthlySpendUsd`, calculated solely from the unit price supplied by the buyer

The `OUTPUT` key-value record gives the match count, missing/blank rows, findings available, findings delivered, truncation, report freshness and the potential monthly spend represented. Empty results produce no paid dataset items. Invalid inputs fail with a sanitized explanation and no paid dataset items.

### Pricing and limits

The proposed price is **$0.10 per delivered dataset item** using Apify's native `apify-default-dataset-item` event. There is no start event or other charging path. A 10-seat review queue would cost $1.00; 50 findings would cost $5.00. The default 20-finding limit and $2.00 run charge cap align; raise both to review more seats in one run. This is a proposed private build price; check the live listing before relying on it. Input is capped, delivery is frozen per run, and a restart verifies existing rows against native charged events before writing more. If a dataset write outcome is uncertain, the Actor stops for reconciliation rather than retrying it blindly. Cloud cost per finding and contribution remain unmeasured until a private test run.

The Actor processes the pasted reports in memory. It makes no network requests. Apify stores the Actor input and output in the run's storage, including workplace user principal names. Only upload data you are allowed to process there and apply your own retention policy.

### Interpretation

“Potential monthly spend” is a **review amount**. It is not recovered revenue, actual savings, a refund claim, or a recommendation to remove access. Confirm the employee's role, recent assignment or leave, contract commitments, accessibility needs and other business context. Excluded missing and blank observations are shown as counts rather than treated as unused seats.

### Market hypothesis

The target buyer has a recurring license review and budget for an audit: [SeatPrune advertises a $149 one-time audit and $10–$79 monthly plans](https://seatprune.com/), while also providing a free tier. The Apify Store had no direct Copilot seat audit Actor in searches for `Copilot license utilization`, `Microsoft Copilot usage audit`, and `Copilot seat waste` on 2026-11-06. Neither fact proves buyers will pay for this Actor. A validation test is external paid use on repeat monthly exports with confirmed rows reviewed or seats reassigned, measured separately from owner testing.

# Actor input Schema

## `demoSample` (type: `boolean`):

Set true to run a one-finding example.com demo with an illustrative $30 seat price. It costs $0.10 for the delivered example finding. Set false and supply all real-report fields for an audit.

## `licenseCsv` (type: `string`):

Paste a current Microsoft 365 Copilot product-specific assigned-user export. It needs one User Principal Name or Email column. Do not paste a tenant-wide user list or historical usage list here. Up to 5,000 rows and 2 MiB UTF-8.

## `usageCsv` (type: `string`):

Paste Microsoft's Copilot usage CSV for D90 or D180. Required columns: Report Refresh Date, Report Period, User Principal Name, Last Activity Date. Names must be visible, not masked. Up to 5,000 rows and 2 MiB UTF-8.

## `licenseExportDate` (type: `string`):

YYYY-MM-DD. Must be within the past seven days. Enter the date you actually exported the current assigned-user roster.

## `unitPriceMonthly` (type: `number`):

Enter your effective contracted unit price. Potential monthly spend is this price times review candidates, not guaranteed savings. Do not include other Microsoft 365 licenses.

## `reviewAfterDays` (type: `integer`):

A dated current Copilot seat is flagged only when its last recorded activity is at least this old relative to the usage report refresh date. Blank and missing dates are excluded from priced findings.

## `maxFindings` (type: `integer`):

Return the oldest inactivity first. OUTPUT states how many findings were omitted by this limit.

## Actor input object example

```json
{
  "demoSample": true,
  "reviewAfterDays": 45,
  "maxFindings": 20
}
```

# Actor output Schema

## `findings` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "demoSample": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("natstandridge/m365-copilot-seat-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "demoSample": True }

# Run the Actor and wait for it to finish
run = client.actor("natstandridge/m365-copilot-seat-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "demoSample": true
}' |
apify call natstandridge/m365-copilot-seat-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,natstandridge/m365-copilot-seat-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sothcZGIRKkCW7dYQ/builds/nSz9XWJZg4ogeOi3h/openapi.json
