Grant admin consent for application permissions

Hi,

I am trying to write a terraform code which includes granting admin consent for application permissions. Kindly refer to the attached image.

I have tried the oauth2_permission_scope but it didn’t work.

oauth2_permission_scope {
  admin_consent_description  = "Administer the example application"
  admin_consent_display_name = "Administer"
  enabled                    = true
  id                         = "be98fa3e-ab5b-4b11-83d9-04ba2b7946bc"
  type                       = "Admin"
  value                      = "administer"
}

Is there a way to do this using Terraform?