I’ve been playing around with Microsoft Graph API to try to display calendar events from a room resource booking for one of our digital signage solutions. There are several requirements in order to achieve this. I’ve listed some of these below and keep in mind I’m not a developer. I just wanted to understand the process and then create the requirements for our developer.

MICROSOFT OFFICE ACCOUNT

You need to have a Microsoft Office 365 E5 subscription account. If you’re a developer you can sign up using the Microsoft Developer Program. This will give you access to the full suite of Microsoft services for free for 90 days which you can renew once that expires.

Microsoft Developer Program free access to office 365 E5

AZURE PORTAL

If you plan to build an App, you must create an app in your Tenant org and then add the required permissions then you need to use the Azure portal. The Azure portal allows Microsoft developers the ability to build, manage, and monitor all the Microsoft apps within the portal.

Microsoft Azure Portal

You can use Microsoft Graph Explorer to check which permissions are required for each graph API call.

Microsoft Graph API Permissions

MICROSOFT GRAPH EXPLORER

Microsoft Graph Explorer is a tool similar to Facebook Graph Explorer and it basically allows you to test your API calls and see what the responses are. This is the tool I recommend you use to find your access token. All you need to do is make a call using one of the sample scripts and there is a tab you can click on to show the access token. I found this the easiest way to get your access token but if there are any other easier ways then please let me know.

Microsoft Graph API Token

Here’s a video showing you how to achieve this:

Here’s the video transcript if you need it:

Hello everybody, in this video I’m going to show you how to get your Microsoft graph access token so that you can use to develop your own apps that integrate with the Microsoft Graph API let’s get started the first thing you need to do is you need to have a developer account or if you already are on the Microsoft Azure platform then you can just use that if you don’t have that you can sign up to get a developer

Account and this is the signup page you will get 90-day access for free and you can renew it every 90 days this will allow you to familiarize yourself with the Microsoft platform and in particular to be able to integrate your own or develop your own tools with Microsoft Azure and any of the apps that is on the market Microsoft platform and once you’ve joined and you’re looking at setting up

For your own app, you can go into the Microsoft Azure portal and create an app now normally when you create the app you’ll be given an application ID an object ID and a directory tenant ID you’re not going to be given an access token which is what you will normally use to gain access to poor information from the Microsoft platform in order to do that the easiest way I found to get that access token is to use

Another tool called Microsoft graph Explorer let me show you that so this is the Microsoft Graph Explorer you just need to log in with the developer accounts or the accounts you want to use to obtain the access token so this is my developer account and you can basically run different tools and run different queries to obtain information from the active directory or some of the other

Apps within the Microsoft platform as you can see here the easiest way to get the access token that I found is to run the query and you can there’s a list on the left-hand side here of sample queries that you can run just gonna pick the main query to get my profile and there you go at the bottom here you’ll see the results and the response but then if there’s a tab here at the top here which has an access token

If you click on that and you just can copy this access token and then you can paste that into the code that you you’re using to create the apps now for those of you that don’t know what the graph API does let me give you a brief explanation of what it does and what you can do with it so Microsoft graph is basically a service that allows Developers with an easy and unified API which is an application programming interface to

Access data from various Microsoft Services some of these include Office 365 Outlook SharePoint OneDrive Azure active directories so you can get profile information from your active directory and so much more like Microsoft Exchange so if you’re a developer this would allow you to build your own apps so that it can integrate within the Microsoft services it’s quite powerful and you can use it

To automate different tasks as well so if you’re looking for an easy way to integrate with your Microsoft platform and services the Microsoft graph is the perfect solution there are other tools like Microsoft power apps or Microsoft automate and power bi that you can also use to integrate your apps but I would recommend using Microsoft graph it’s pretty easy and straightforward to use the only thing that I stumbled across

Was trying to get the access token now if this video helped in any way please give it a like and subscribe to the channel. See you next time!

If this article helped you in any way and you want to show your appreciation, I am more than happy to receive donations through PayPal. This will help me maintain and improve this website so I can help more people out there. Thank you for your help.

HELP OTHERS AND SHARE THIS ARTICLE


800Shares

LEAVE A COMMENT


Subscribe to my newsletter where I will share my journey in affiliate marketing, business, technology, fitness and life in general. Hopefully, this motivates you to also change your journey in life.

Subscribe to my newsletter where I will share my journey in affiliate marketing, business, technology, fitness and life in general. Hopefully, this motivates you to also change your journey in life.