Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,243 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello, I have many test tenants and my work needs to grant tenant admin consent to an application.
The current solution is manual, here are the current steps I take:
1.Open browser and access this link:
https://login.microsoftonline.com/{
$TenantId
}/oauth2/authorize?client_id={
$AppId
}&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
2.A login window pops up, login with the tenant admin account.
3.A consent window pops up, click "Accept".
My question is how to automate the process using programming approach to skip all interactive actions?