Chapter 2 - Graph API user profile properties shown it in nice way
first create no javascript webpart
then install types of graph api
npm install @microsoft/microsoft-graph-types --save-dev
Open the .ts file, import the below two things
Now upload the Sppkg file to app catalog.
Go to admin center:https://mercedessaga-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement
Click on advanced-> api access
If it is pending - click on it and approve it twice popup shows.

Click on Approve.
Note: This is one time job initially when we work with MS Graph API.
In package-solution.json
add permissions ReadBasic.All
This means we need to make sure provide permission to Graph API and our sharepoint site. So we add this permission line of code below in pakage-solution.json and a request will be shown in SharePoint admin center under API access.
package-solution.json
Comments
Post a Comment