Skip to content

New command: Retrieve a list of OneNote notebooks #3097

@Abderahman88

Description

@Abderahman88

Usage

m365 onenote notebook list

Description

Retrieve a list of notebook objects.

Options

Option Description
--userId [userId] Id of the user. Use either userId or userName, but not both.
--userName [userName] Name of the user. Use either userId or userName, but not both.
--groupId [groupId] Id of the SharePoint group. Use either groupName or groupId, but not both.
--groupName [groupName] Name of the SharePoint group. Use either groupName or groupId, but not both.
-u, --webUrl [webUrl] URL of the SharePoint site.

Additional Info

List notebooks (MS Graph docs)

Examples

List Microsoft OneNote notebooks for the currently logged in user

m365 onenote notebook list

List Microsoft OneNote notebooks in group 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4

m365 onenote notebook list --groupId 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4

List Microsoft OneNote notebooks in group My Group

m365 onenote notebook list --groupName "MyGroup"

List Microsoft OneNote notebooks for user [email protected]

m365 onenote notebook list --userName [email protected]

List Microsoft OneNote notebooks for user 2609af39-7775-4f94-a3dc-0dd67657e900

m365 onenote notebook list --userId 2609af39-7775-4f94-a3dc-0dd67657e900

List Microsoft OneNote notebooks for site https://contoso.sharepoint.com/sites/testsite

 m365 onenote notebook list --webUrl https://contoso.sharepoint.com/sites/testsite

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions