How can I retrieve the Author of a Page or sections of the Page

Paul Wagner 1 Reputation point
2021-10-29T14:34:01.303+00:00

In the OneNote application, you can view the author of each section of a page, or search for pages by author.

Using the GraphAPI, I'd like to tell the author of a note within a shared notebook, to which multiple authors are contributing. Is there any field in order to do this? I don't see any property like that in the OnenotePage model within the C# GraphAPI client, but I'm hoping there might be a hidden name I could retrieve with this type of request:

https://graph.microsoft.com/v1.0/users/xxxxxxx-81b7-4fe6-bf3c-670e8beeb6e9/onenote/sections/1-xxxxxxxx-fc0c-4a28-bc45-b31712892449/pages?$select=title,contentUrl

Alternatively if there is a way to retrieve author info within the content call, that'd be fine as well.

My other idea is that I could query for pages created by a specific author; that would be just as useful. Thanks.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,028 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 45,186 Reputation points
    2021-11-01T09:40:56.77+00:00

    As far as I know, can view author information in the HTML content of the page through the OneNote application itself (web and desktop versions) but cannot retrieve author information through MS graph api, because OneNote graph api does not provide this attribute. I remember someone asked a similar question on SO.

    So I suggest you submit user voice to add support for this feature, and I will vote for you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.