Hello @Kaniganti Sai Sumanth ,
Thank you for posting your query on Microsoft Q&A.
Based on your description, I understand that you want to know whether is it possible to automate granting admin consent for an Azure Databricks SCIM app using Terraform and Azure CLI without manual intervention?
Yes, it is possible to automate granting admin consent for an Azure Databricks SCIM app using Terraform and Azure CLI.
Pre-Requisites:
To grant tenant-wide admin consent, you need:
- A Microsoft Entra user account with one of the following roles:
- Privileged Role Administrator, for granting consent for apps requesting any permission, for any API.
- Cloud Application Administrator or Application Administrator, for granting consent for apps requesting any permission for any API, except Microsoft Graph app roles (application permissions).
- A custom directory role that includes the permission to grant permissions to applications, for the permissions required by the application.
Please make sure the user account with which you are trying to grant admin consent for Azure Databricks SCIM application has required roles, such as "Global Administrator" or "Privileged Role Administrator".
Please refer to the below documents for your reference regarding the Pre-Requisites to grant tenant-wide admin consent and the Azure CLI commands for Grant Application & Delegated permissions through admin-consent.
https://zcusa.951200.xyz/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=ms-graph
I hope this above information provided is helpful. Please feel free to reach out if you have any further questions.
If the above answer is helpful, please click "Accept Answer" and kindly upvote it. If you have additional questions about this answer, please click "Comment".
Thanks and Best Regards,
Sanoop Mohan