MailboxItem.Export
Allows the app to export the user's mailbox items, on behalf of the the signed-in user.
In short
MailboxItem.Export is a delegated permission in the Microsoft Graph API, grouped under the MailboxItem category. Allows the app to export the user's mailbox items, on behalf of the the signed-in user. It grants read-only access to resources. This delegated permission requires admin consent.
Permission Details
Export a user's mailbox items
Allows the app to export the user's mailbox items, on behalf of the the signed-in user.
58d3e7fa-3ce9-4a0c-9baa-0971f64709d9
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
categories |
String collection |
The categories associated with the message. Inherited from outlookItem. |
changeKey |
StringNullable |
The version of the item. Inherited from outlookItem. |
createdDateTime |
DateTimeOffsetNullable |
The date and time when the item was created. The date and time information uses ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2021 is 2021-01-01T00:00:00Z. Inherited from outlookItem. |
id |
String |
The unique identifier for the item. Inherited from outlookItem. |
lastModifiedDateTime |
DateTimeOffsetNullable |
The date and time when the item was last changed. The date and time information uses ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2021 is 2021-01-01T00:00:00Z. Inherited from outlookItem. |
size |
Int64Nullable |
The length of the item in bytes. |
type |
StringNullable |
The message class ID of the item. |
multiValueExtendedProperties |
multiValueLegacyExtendedProperty collection |
The collection of multi-value extended properties defined for the mailboxItem. |
singleValueExtendedProperties |
singleValueLegacyExtendedProperty collection |
The collection of single-value extended properties defined for the mailboxItem. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.mailboxItem",
"categories": [
"String"
],
"changeKey": "String",
"createdDateTime": "String (timestamp)",
"id": "String (identifier)",
"lastModifiedDateTime": "String (timestamp)",
"size": "Int64",
"type": "String"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
multiValueExtendedProperties |
multiValueLegacyExtendedProperty collection |
The collection of multi-value extended properties defined for the mailboxItem. |
singleValueExtendedProperties |
singleValueLegacyExtendedProperty collection |
The collection of single-value extended properties defined for the mailboxItem. |
categories |
string collection |
The categories associated with the item |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/admin/exchange/mailboxes/{mailboxId}/exportItems
|
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/admin/exchange/mailboxes/{mailboxId}/exportItems
|
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Admin.Exchange.Mailboxes.Item.ExportItems;
var requestBody = new ExportItemsPostRequestBody
{
ItemIds = new List<string>
{
"EDSVrdi3lRAADmpnf1AAA=",
"EDSVrdi3lRAAD45b7RAAA=",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Admin.Exchange.Mailboxes["{mailbox-id}"].ExportItems.PostAsExportItemsPostResponseAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const exportItemResponse = {
itemIds: [
'EDSVrdi3lRAADmpnf1AAA=',
'EDSVrdi3lRAAD45b7RAAA='
]
};
await client.api('/admin/exchange/mailboxes/MBX:e0643f21@a7809c93/exportItems')
.post(exportItemResponse);
Connect-MgGraph -Scopes "MailboxItem.Export"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/admin/exchange/mailboxes/{id}/exportItems"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.admin.exchange.mailboxes.item.export_items.export_items_post_request_body import ExportItemsPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ExportItemsPostRequestBody(
item_ids = [
"EDSVrdi3lRAADmpnf1AAA=",
"EDSVrdi3lRAAD45b7RAAA=",
],
)
result = await graph_client.admin.exchange.mailboxes.by_mailbox_id('mailbox-id').export_items.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for MailboxItem.Export
Grant Admin Consent
This delegated permission requires admin consent.
Frequently asked questions
What is the MailboxItem.Export Microsoft Graph permission?
MailboxItem.Export is a delegated permission in the Microsoft Graph API, grouped under the MailboxItem category. Allows the app to export the user's mailbox items, on behalf of the the signed-in user. It grants read-only access to resources. This delegated permission requires admin consent. It is mapped to the Microsoft Graph mailboxitem resource type. 2 documented Microsoft Graph REST methods require it.
Is MailboxItem.Export an application or a delegated permission?
MailboxItem.Export is a delegated permission only. It grants access on behalf of a signed-in user and cannot be used for app-only access.
Does MailboxItem.Export require admin consent?
This delegated permission requires admin consent.
What is the permission ID (GUID) for MailboxItem.Export?
For MailboxItem.Export, the delegated (OAuth2 scope) ID is 58d3e7fa-3ce9-4a0c-9baa-0971f64709d9. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.