Since 18th of May 2018 the button to grant permissions button in Azure (used as admin to give permission to application roles for all users) stopped working.
AAD error details: "Failed to grant permissions for application [application name]"
Error json:
{"errorCode":"Request_BadRequest","localizedErrorDetails":{"errorDetail":"Consent validation failed: "},"operationResults":null,"timeStampUtc":"2018-05-28T17:56:43.765787Z","clientRequestId":"1c1cad98-7731-45bf-8d78-8465ffdf902f","internalTransactionId":"42926dde-51de-451c-aae8-a186167197e8","upn":"[email protected]","tenantId":"f0000d-9eb0-473e-9646-ceggf5d47c69d","userObjectId":null}
I have no idea what has been changed since that day. Steps to reproduce:
In Azure Active Directory, Go to App Registrations, select the app where you want to add the rights to, go to Settings, Required Permissions and select the API which is giving you grief and delete it.
After that, add it again, and it should work now.