I\'m trying to build task-pane add-in for OneNote ClassNotebook.
I want to know whether current user is teacher or student.
To achieve this, my plan was:
The Id between REST API and JavaScript API are not compatible. What is compatible is ClientUrl.
In JavaScript API, there is notebook.ClientUrl In Rest API, it has oneNoteClientUrl.