Call Graph API with Token
Steps:
- Get Token
- 2. Use Token to connect to Graph API

Prerequisites : Create app registration and note the ClientId, TenantId, Secret. Required Api permissions need to be set in the app registration.
Step 1: Make a POST call to Https://login.microsoft.com/TenantId/Oauth/token with body

Get the access_token in the response
Step 2: Make a Graph API call with the header containing the token
Authorization : Bearer <access_token>
Reference: https://www.youtube.com/watch?v=DIIYZUzNk5E