Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

Blog

VIDEO – MS Graph (Sites.Selected) demo AngularJS create SharePoint List Item

Tour of the process to invoke MS Graph API with Sites.Selected including Azure App Registration, SharePoint Online, MS Graph Explorer, VS Code, and AngularJS web application to create SharePoint List Item.

Goal is to demonstrate coding example:

  1. How to create Azure App Registration with GUI
  2. How to grant “Sites.Selected” for given SharePoint Online URL with PNP PowerShell
  3. HTTP POST for Azure logic to get Access Token
  4. HTTP POST for MS Graph “Sites.Selected” granular API to create SharePoint list item
  5. Tools needed to develop and debug all of the above.

With Microsoft’s release of “Sites.Selected” for MS Graph we have more granular permission options beyond classic “Sites.ReadWrite.All” and “Sites.FullControl.All” which could enable an application to read every document in the SharePoint Online tenant. Least privilege security practices would encourage us to only grant what is actively needed, nothing more.

Testing the full process end-to-end requires a sample application sending HTTP to read/write SharePoint data. For that, we are employing a simple AngularJS 1X web Single Page Application (SPA) with only 1 HTML and 1 JS file. Enables us to view JS values, click button to send, and trace network traffic with F12 Chrome tools. NPM and LITE-SERVER are leveraged for http://localhost:3000/ website hosting to provide front end interface and local debug. Also, Chrome is launched with CMD parameters to disable CORS providing unrestricted network traffic and for simpler debug experience.

Cheers.

Video

Source Code

Screenshots

References

VIDEO – Microsoft 365 Learning Pathways – Teams App Template (educate workforce)

Video tour for the install, configuration, deployment and testing of the “Microsoft 365 Learning Pathways” extension for Microsoft Teams. Cheers.

Video

Source Code

https://github.com/msft-teams/tools/blob/master/M365%20Learning%20Pathways/getstartedapp/installandconfig.md

https://practical365.com/what-is-microsoft-365-learning-pathways-and-why-should-you-use-it/

Screenshots

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲