cipp_list_mailbox_usage
Report mailbox and online-archive sizes across a tenant, largest first, with tenant-wide totals. Identify who is near quota and how much Exchange storage is used.
Instructions
Report mailbox and online-archive sizes across a tenant, largest first, with tenant-wide totals. Each mailbox reports bytes used, a human-readable size, item count, quota and percent-of-quota, for both the primary store and the archive. Answers 'who is near quota', 'which mailboxes need archiving', and 'how much Exchange storage does this tenant use'. Sizes come from CIPP's reporting database, which must have been synced — the live Exchange query carries no size data at all. For one mailbox, or when the cache is unavailable, use cipp_get_mailbox_usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of mailboxes to return (default 50, maximum 1000). The summary totals always cover every mailbox in the tenant, not just the ones returned — including `nearQuotaCount`, how many mailboxes sit at or above `nearQuotaPercent` of their quota, which answers the "who is about to stop receiving mail" question without reading a single row. | |
| sortBy | No | Ordering, largest first. `mailboxSize` (default) ranks by the primary store, `archiveSize` by the online archive, `totalSize` by the two combined, and `percentOfQuota` by how full the primary store is relative to its quota — the one to use when hunting for mailboxes about to stop receiving mail. | |
| minSizeGB | No | Only return mailboxes whose primary store and archive together reach this size in GB. Omit to return every mailbox. | |
| tenantFilter | Yes | Tenant domain name or ID to scope the operation. Use 'allTenants' to target every managed tenant. |