-
Notifications
You must be signed in to change notification settings - Fork 17
Azure AD App
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.
- Head over to the Azure portal and open the App registrations
- Click "New registration"
- Give your app an unique name
- Select Single tenant and leave the redirect URL empty
- Click Create Application
Add the following permissions from the Microsoft Graph section:
- Presence.Read
- User.Read
![](https://github.com/maxi07/Teams-Presence/raw/master/doc/api%20permission.png)
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.
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.
You will find your Application (client) ID and Directory (tenant) ID at the overview blade of the application.
Feel free to check out the Microsoft Graph API playground for testing the API.