In this article we will discuss the detailed steps for creating / registering new app from Azure Active Directory

Background: Recently got a chance to use Graph API
for getting Office 365 Group Admins. We have use case to check whether our
Office 365 group has more than two owners or not. We have console application
and using CSOM to get the group owners. To use the GRAPH APIs, authentication
and authorization mechanism is bit different. We need to use the Azure AD.

So, to access Microsoft GRPAH APIs we need to create the new
Azure App and need to give the permissions to respective APIs to access the
respective data. Here, in our case to access O365 groups we have following high
level steps:

Register / Create new Azure
App from “Azure Active Directory” center

Get the APPID and Client
Secret Key

Give the permission to
access o365 Group owners to our newly created app to access GRAPH APIs

Generate the authentication
token in our program

Use authentication token to
use the GRAPH APIs

In this article we will go in details for two points – Register / Create new Azure App from “Azure Active Directory” center and generating new client secret key. We will have detailed steps as below.