Adding Students with the API and Class Notebook












1















I'm using the Graph API to construct a simple Dashboard for Teachers and Students. Everything works well except that when a Student is added they do not get access to the Class Notebook and they don't get a Section Group for them created in the Class Notebook.



Notably, if I open the Class in Microsoft Teams and add or remove anyone from it then all of the users that have been added through the API get access and their section groups created correctly.



This behavior seems to happen both with .Education.Classes["..."].Members and Groups["..."].Members. The Members added this way also don't show up in the Teams "Manage Members" interface but I'm not concerned about that.



I'm using the v1.0 endpoint, and OneDrive and Sharepoint permissions all work as expected.



My question is do I have to do something extra to get the Class Notebook updated with the membership or are there some additional properties that need to be sent when adding a user or is this just a bug?










share|improve this question





























    1















    I'm using the Graph API to construct a simple Dashboard for Teachers and Students. Everything works well except that when a Student is added they do not get access to the Class Notebook and they don't get a Section Group for them created in the Class Notebook.



    Notably, if I open the Class in Microsoft Teams and add or remove anyone from it then all of the users that have been added through the API get access and their section groups created correctly.



    This behavior seems to happen both with .Education.Classes["..."].Members and Groups["..."].Members. The Members added this way also don't show up in the Teams "Manage Members" interface but I'm not concerned about that.



    I'm using the v1.0 endpoint, and OneDrive and Sharepoint permissions all work as expected.



    My question is do I have to do something extra to get the Class Notebook updated with the membership or are there some additional properties that need to be sent when adding a user or is this just a bug?










    share|improve this question



























      1












      1








      1








      I'm using the Graph API to construct a simple Dashboard for Teachers and Students. Everything works well except that when a Student is added they do not get access to the Class Notebook and they don't get a Section Group for them created in the Class Notebook.



      Notably, if I open the Class in Microsoft Teams and add or remove anyone from it then all of the users that have been added through the API get access and their section groups created correctly.



      This behavior seems to happen both with .Education.Classes["..."].Members and Groups["..."].Members. The Members added this way also don't show up in the Teams "Manage Members" interface but I'm not concerned about that.



      I'm using the v1.0 endpoint, and OneDrive and Sharepoint permissions all work as expected.



      My question is do I have to do something extra to get the Class Notebook updated with the membership or are there some additional properties that need to be sent when adding a user or is this just a bug?










      share|improve this question
















      I'm using the Graph API to construct a simple Dashboard for Teachers and Students. Everything works well except that when a Student is added they do not get access to the Class Notebook and they don't get a Section Group for them created in the Class Notebook.



      Notably, if I open the Class in Microsoft Teams and add or remove anyone from it then all of the users that have been added through the API get access and their section groups created correctly.



      This behavior seems to happen both with .Education.Classes["..."].Members and Groups["..."].Members. The Members added this way also don't show up in the Teams "Manage Members" interface but I'm not concerned about that.



      I'm using the v1.0 endpoint, and OneDrive and Sharepoint permissions all work as expected.



      My question is do I have to do something extra to get the Class Notebook updated with the membership or are there some additional properties that need to be sent when adding a user or is this just a bug?







      microsoft-graph microsoft-graph-edu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 '18 at 22:49









      Marc LaFleur

      18.9k31833




      18.9k31833










      asked Nov 23 '18 at 20:47









      Justin CritchJustin Critch

      83




      83
























          1 Answer
          1






          active

          oldest

          votes


















          1














          The Class Notebook doesn't automatically watch the group membership. Rather experiences that add members need to use Class Notebook APIs to do the matching update.



          Unfortunately, the Class Notebook APIs aren't yet available directly on the Microsoft graph, so you have to switch over to the OneNote API endpoint (refresh your token with that as the resource) and make the call there.



          This is the API you need






          share|improve this answer
























          • Thanks Gareth, that makes sense, now if only I could actually get the OneNote API to accept a token (my new question: stackoverflow.com/questions/53544128/…)

            – Justin Critch
            Nov 29 '18 at 17:06











          • Sent some further advice to that question.

            – GarethJ
            Dec 5 '18 at 23:03











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452782%2fadding-students-with-the-api-and-class-notebook%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The Class Notebook doesn't automatically watch the group membership. Rather experiences that add members need to use Class Notebook APIs to do the matching update.



          Unfortunately, the Class Notebook APIs aren't yet available directly on the Microsoft graph, so you have to switch over to the OneNote API endpoint (refresh your token with that as the resource) and make the call there.



          This is the API you need






          share|improve this answer
























          • Thanks Gareth, that makes sense, now if only I could actually get the OneNote API to accept a token (my new question: stackoverflow.com/questions/53544128/…)

            – Justin Critch
            Nov 29 '18 at 17:06











          • Sent some further advice to that question.

            – GarethJ
            Dec 5 '18 at 23:03
















          1














          The Class Notebook doesn't automatically watch the group membership. Rather experiences that add members need to use Class Notebook APIs to do the matching update.



          Unfortunately, the Class Notebook APIs aren't yet available directly on the Microsoft graph, so you have to switch over to the OneNote API endpoint (refresh your token with that as the resource) and make the call there.



          This is the API you need






          share|improve this answer
























          • Thanks Gareth, that makes sense, now if only I could actually get the OneNote API to accept a token (my new question: stackoverflow.com/questions/53544128/…)

            – Justin Critch
            Nov 29 '18 at 17:06











          • Sent some further advice to that question.

            – GarethJ
            Dec 5 '18 at 23:03














          1












          1








          1







          The Class Notebook doesn't automatically watch the group membership. Rather experiences that add members need to use Class Notebook APIs to do the matching update.



          Unfortunately, the Class Notebook APIs aren't yet available directly on the Microsoft graph, so you have to switch over to the OneNote API endpoint (refresh your token with that as the resource) and make the call there.



          This is the API you need






          share|improve this answer













          The Class Notebook doesn't automatically watch the group membership. Rather experiences that add members need to use Class Notebook APIs to do the matching update.



          Unfortunately, the Class Notebook APIs aren't yet available directly on the Microsoft graph, so you have to switch over to the OneNote API endpoint (refresh your token with that as the resource) and make the call there.



          This is the API you need







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 27 '18 at 20:40









          GarethJGarethJ

          6,0232539




          6,0232539













          • Thanks Gareth, that makes sense, now if only I could actually get the OneNote API to accept a token (my new question: stackoverflow.com/questions/53544128/…)

            – Justin Critch
            Nov 29 '18 at 17:06











          • Sent some further advice to that question.

            – GarethJ
            Dec 5 '18 at 23:03



















          • Thanks Gareth, that makes sense, now if only I could actually get the OneNote API to accept a token (my new question: stackoverflow.com/questions/53544128/…)

            – Justin Critch
            Nov 29 '18 at 17:06











          • Sent some further advice to that question.

            – GarethJ
            Dec 5 '18 at 23:03

















          Thanks Gareth, that makes sense, now if only I could actually get the OneNote API to accept a token (my new question: stackoverflow.com/questions/53544128/…)

          – Justin Critch
          Nov 29 '18 at 17:06





          Thanks Gareth, that makes sense, now if only I could actually get the OneNote API to accept a token (my new question: stackoverflow.com/questions/53544128/…)

          – Justin Critch
          Nov 29 '18 at 17:06













          Sent some further advice to that question.

          – GarethJ
          Dec 5 '18 at 23:03





          Sent some further advice to that question.

          – GarethJ
          Dec 5 '18 at 23:03


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452782%2fadding-students-with-the-api-and-class-notebook%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Berounka

          Sphinx de Gizeh

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...