Notes.ReadWrite.All
Allows the app to read all the OneNote notebooks in your organization, without a signed-in user.
Permission Details
Read and write all OneNote notebooks
Allows the app to read all the OneNote notebooks in your organization, without a signed-in user.
0c458cef-11f3-48c2-a568-c66751c238c0
Read and write all OneNote notebooks that user can access
Allows the app to read, share, and modify OneNote notebooks that the signed-in user has access to in the organization.
64ac0503-b4fa-45d9-b544-71a463f05da0
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
id |
string |
The unique identifier for an entity. Read-only. |
notebooks |
notebook collection |
The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
operations |
onenoteOperation collection |
The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. |
pages |
onenotePage collection |
The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
resources |
onenoteResource collection |
The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. |
sectionGroups |
sectionGroup collection |
The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
sections |
onenoteSection collection |
The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"notebooks": [
{
"@odata.type": "microsoft.graph.notebook"
}
],
"operations": [
{
"@odata.type": "microsoft.graph.onenoteOperation"
}
],
"pages": [
{
"@odata.type": "microsoft.graph.onenotePage"
}
],
"resources": [
{
"@odata.type": "microsoft.graph.onenoteResource"
}
],
"sectionGroups": [
{
"@odata.type": "microsoft.graph.sectionGroup"
}
],
"sections": [
{
"@odata.type": "microsoft.graph.onenoteSection"
}
]
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
notebooks |
notebook collection |
The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
operations |
onenoteOperation collection |
The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. |
pages |
onenotePage collection |
The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
resources |
onenoteResource collection |
The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. |
sectionGroups |
sectionGroup collection |
The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
sections |
onenoteSection collection |
The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new Notebook
{
DisplayName = "My Private notebook",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Me.Onenote.Notebooks.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const notebook = {
displayName: 'My Private notebook'
};
await client.api('/me/onenote/notebooks')
.post(notebook);
Import-Module Microsoft.Graph.Notes
$params = @{
displayName = "My Private notebook"
}
# A UPN can also be used as -UserId.
New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.notebook import Notebook
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Notebook(
display_name = "My Private notebook",
)
result = await graph_client.me.onenote.notebooks.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 Application permissions or delegated permissions and search for Notes.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.