From the course: Integrate Microsoft Graph in Your Applications

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Call Microsoft Graph using JavaScript

Call Microsoft Graph using JavaScript

- [Instructor] Now let me show you how a Node.js application can call Microsoft Graph. I'm logged into portal.azure.com, although you're welcome to follow me through entra.microsoft.com as well. Every app that needs to call any API protected by Entra ID starts with a new app registration. So click on the new registration button and give it a friendly name. I'm going to call mine msgraph. Here the process is very similar to what I described in the .NET examples, so I'll go a little bit faster. Specifically, you need to grant access to the APIs that we're interested in. To make things a little bit different this time around, I'm going to use a delegated permission API, which means that a user sign-in is required. So again, how do I grant permission? Click on add permission, Microsoft Graph. Last time, we used application permissions. This time, we're going with delegated permissions, i.e. a user identity is required, and feel free to pick any one of these. All that changes is what…

Contents