In this PnP Webcast, we concentrated on how to access Microsoft Graph exposed information from SharePoint Framework solutions. When you want to access the Microsoft Graph APIs from SharePoint Framework solutions, you should be using the MSGraphClient component. This component will take care of all technical plumbing so that you can concentrate on building your business logic and presentation layer.
SharePoint Framework also provides additional governance layer for the Microsoft Graph, so that tenant administrators can view and manage which data is available from the Microsoft Graph for the different SharePoint Framework components. By default, none of the Microsoft Graph scopes are exposed, but developers can request needed information for their solutions based on business and technical requirements, which have to be then approved by tenant administrator before access to the information is available.
This capability was released to general availability as part of the SharePoint Framework 1.6 release and it is available for worldwide usage from Office 365.
The presentation covers the following discussion points:
- Steps on using MSGraphClient within SharePoint Framework
- Considerations on using MSGraphClient
Webcast demo shows the following things:
- How to find out what permissions (scopes) are needed for Microsoft Graph API based on your solution design?
- Adding scope permissions requests for the SharePoint Framework solution (package-solution.json)
- How to use MSGraphClient in TypeScript within the client-side web part code?
- Deployment of your solution to your Office 365 tenant
- Managing your Microsoft Graph permissions (scopes) from the modern tenant administrative user interface
- Using your web part in SharePoint modern experiences for accessing user specific information
The presentation used in this webcast is available from the PnP OneDrive account (a new location we start using for presentations).
Video on YouTube.
See the following resources on the covered topics.
- Code for the Personal Email Web Part used in the demo
- Connect to Microsoft Graph from SharePoint Framework solution
- Tutorial – Consume the Microsoft Graph in the SharePoint Framework
- SharePoint Framework documentation
- PnP Webcast – Activation options for SharePoint Framework extensions
- PnP Webcast – Consuming taxonomy within SharePoint Framework solution
- PnP Webcast – Debugging SharePoint Framework solutions
- PnP Webcast – Using Docker in SharePoint Framework development
- PnP Webcast – Upgrading Packages in SharePoint Framework Solutions
- PnP Webcast – SharePoint Framework Dialog Framework
- PnP Webcast – Reusable controls for your SharePoint Framework solutions
- PnP Webcast – Site collection app catalog
- PnP Webcast – Including assets in SharePoint Framework solution packages
- PnP Webcast – Migrating to SharePoint Framework Extensions
- PnP Webcast – ALM APIs for SharePoint Framework solutions and SharePoint add-ins (apps)
- PnP Webcast – Defining an icon for the client-side web part
- PnP Webcast – Working with Tenant Properties in SharePoint Online
- PnP Webcast – Deployment options for SharePoint Framework solutions
- PnP Webcast – SharePoint Framework in SharePoint 2016 Feature Pack 2
- PnP Webcast – VSTS Build and Release Pipelines for SharePoint Framework Solutions
- PnP Webcast – Common (mis)conceptions about SharePoint Framework
- PnP Webcast – Introduction to Visual Studio Extension for SharePoint Framework
- PnP Webcast – Calling external APIs securely from SharePoint Framework
- PnP Webcast – SharePoint Framework and organizational considerations
- PnP Webcast – Provisioning SharePoint assets for your SharePoint Framework solution
- PnP Webcast – Validating SharePoint Framework client-side web part property values
- PnP Webcast – Getting started with SharePoint Framework
What is SharePoint / Office Dev Patterns & Practices (PnP) webcast series?
SharePoint / Office Dev Patterns & Practices (PnP) webcast series covers different patterns, practices, and topics around development with Office 365 and SharePoint. The majority of the topics are valid for the Office 365 and SharePoint on-premises. All webcasts are published at the PnP YouTube channel with additional references to the existing materials.
PnP is a community-driven open source initiative where Microsoft and external community members are sharing their learning’s around implementation practices for Office 365 and SharePoint on-premises (SharePoint Framework and add-in model). Active development and contributions happen in our GitHub repositories. Latest activities and future plans are covered in our monthly community calls which are open to anyone from the community. More details on community calls and open-source projects are available from http://aka.ms/sppnp.
If you have any questions, comments or feedback on SharePoint Development topics, PnP program or this blog post, please use the Microsoft Tech Community (SharePoint Developer group).
“Sharing is caring”
SharePoint Team, Microsoft – 3rd of October 2018