Skip to content

Azure AD App

Maxi edited this page Dec 4, 2020 · 2 revisions

You will need an Azure AD app to get your Microsoft Teams presence status. Either you can use the Azure AD App from my original project inspiration or you can create your own.

You will need elevated rights in Microsoft Azure to create new Azure AD apps.

Register application

  1. Head over to the Azure portal and open the App registrations
  2. Click "New registration"
  3. Give your app an unique name
  4. Select Single tenant and leave the redirect URL empty
  5. Click Create Application

API permissions

Add the following permissions from the Microsoft Graph section:

  • Presence.Read
  • User.Read

Authentication

In the authentication section, add the following Redirect URL as web plattform:
https://login.microsoftonline.com/common/oauth2/nativeclient Make sure, that Implicit grant is not enabled and the application is set to Single tenant.

Make Application Public

Device code flow is available only in public client applications. You will later register your device with a registration code from the device login page.

Finished!

You will find your Application (client) ID and Directory (tenant) ID at the overview blade of the application.

Playground

Feel free to check out the Microsoft Graph API playground for testing the API.

Clone this wiki locally