MailboxFolder.ReadWrite.All
Allows the app to read and write all the users' mailbox folders, without signed-in user.
Permission Details
Read and write all the users' mailbox folders
Allows the app to read and write all the users' mailbox folders, without signed-in user.
fef87b92-8391-4589-9da7-eb93dab7dc8a
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
childFolderCount |
Int32Nullable |
The number of immediate child folders in the current folder. |
displayName |
StringNullable |
The display name of the folder. |
id |
String |
The unique identifier for the folder. |
parentFolderId |
StringNullable |
The unique identifier for the parent folder of this folder. |
parentMailboxUrl |
StringNullable |
The routing link to the actual underlying mailbox where the folder physically resides. The folder can be accessed using GET {parentMailboxUrl}/folders/{id}, which treats the entire URL as an opaque string. , , This method is especially important when auto-expanding archiving is enabled for a user's in-place archive mailbox. The user's archive content can span across multiple mailboxes in such scenarios. |
totalItemCount |
Int32Nullable |
The number of items in the folder. |
type |
StringNullable |
Describes the folder class type. |
childFolders |
mailboxFolder collection |
The collection of child folders in this folder. |
items |
mailboxItem collection |
The collection of items in this folder. |
multiValueExtendedProperties |
multiValueLegacyExtendedProperty collection |
The collection of multi-value extended properties defined for the mailboxFolder. |
singleValueExtendedProperties |
singleValueLegacyExtendedProperty collection |
The collection of single-value extended properties defined for the mailboxFolder. |
JSON Representation
JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
{
"@odata.type": "#microsoft.graph.mailboxFolder",
"displayName": "String",
"childFolderCount": "Int32",
"id": "String (identifier)",
"parentFolderId": "String",
"parentMailboxUrl": "String",
"totalItemCount": "Int32",
"type": "String"
}
Relationships
Relationships is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Relationship | Type | Description |
|---|---|---|
childFolders |
mailboxFolder collection |
The collection of child folders in this folder. |
items |
mailboxItem collection |
The collection of items in this folder. |
multiValueExtendedProperties |
multiValueLegacyExtendedProperty collection |
The collection of multi-value extended properties defined for the mailboxFolder. |
singleValueExtendedProperties |
singleValueLegacyExtendedProperty collection |
The collection of single-value extended properties defined for the mailboxFolder. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
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
// 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}"].Folders["{mailboxFolder-id}"].GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
const mailboxFolder = {
displayName: 'Announcements',
type: 'IPF.Note',
singleValueExtendedProperties: [
{
id: 'String 0x3001',
value: 'Announcements'
}
]
};
await client.api('/admin/exchange/mailboxes/MBX:e0648f21@aab09c93/folders')
.version('beta')
.post(mailboxFolder);
Connect-MgGraph -Scopes "MailboxFolder.ReadWrite.All"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/admin/exchange/mailboxes/{id}/folders"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.admin.exchange.mailboxes.by_mailbox_id('mailbox-id').folders.by_mailbox_folder_id('mailboxFolder-id').get()
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 Application permissions and search for MailboxFolder.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.