Hi @thomas masquelier ,
Thanks for posting your ask on Microsoft Q&A!!
am not able to reproduce this issue when connecting to Exchange Online using Azure Automation account. I have followed the steps mentioned in the documentation over here for using Managed Identity. However, I have given one additional permission of "Global Reader" (other than an Exchange Administrator) to the Managed Identity of the Automation account.
I have not given any more Graph permissions than the required one - Exchange.ManageAsApp.
Here is the code which I have tested through the Automation account -
Connect-ExchangeOnline -ManagedIdentity -Organization <organization>.onmicrosoft.com
Get-AcceptedDomain | Format-Table Name
Here is the output for your reference-
Can you please try providing the Global Reader permission to the application?
Additionally, if this doesn't work, then please try to remove any additional permissions like Microsoft Graph permissions.
Please let me know how it goes. Thanks.