I am trying to consume Microsoft Graph API to provision/de-provision users and groups to/from Azure Active Directory. I have registered my app in Microsoft App Registration Portal (https://apps.dev.microsoft.com). I am planning to develop a Web application using Java and REST. I am confused about the "GrantType" to use for authentication and to get the accessToken.
I have gone through the documentation provided by Microsoft (https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols). I am thinking of using either ClientCredentials GrantType or AuthorizationCode GrantType, but looks like they require "User Intervention" for giving "Admin Consent".
My question is which grant type to use to get the AccessToken directly without any user intervention.
Could any one please guide me this. Thanks so much in advance...