An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi @Yon Gold
The /me endpoint is only available in a delegated context to refer to the logged in user. If you are using an application-only context, then you should call the /users/{user_id} endpoint.
from msgraph import GraphServiceClient
graph_client = GraphServiceClient(credentials, scopes)
result = await graph_client.users.by_user_id('user-id').onenote.pages.get()
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.