Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Can't connect to Office 365 Outlook


I am experiencing a problem while trying to connect to Office 356 Outlook. At Data -> Connection -> New Connection I choose "Office 365 Outlook", then a login window appears where I type in my creditentials. After that I receive th following error message:

OAuth2Certificate authorization flow failed for service 'Office 365 (Discovery, Certificate)'. O365 discovery endpoint returned status code 401 (Unauthorized). Response:\r\n{"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":"Access denied. You do not have permission to perform this action or access this resource."}}

Can someone help me with this?

Community Support Team
Community Support Team

Re: Can't connect to Office 365 Outlook

Hi @agabor,


The error message says that you don’t have permission to access the resource.

Please check the subscription and make sure it has not been expired.

Besides, please confirm with your tenant admin to check if the they have set YES for “Users can consent to apps accessing company data on their behalf” option in AAD.

It could be found under AAD>User and groups>User settings>Enterprise applications.

Hope it could be your reference.


Best regards,


Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Power Up

Re: Can't connect to Office 365 Outlook

i have a single acct it is not expired... but still can not connest to it  any other thoughts

Level: Power Up

Re: Can't connect to Office 365 Outlook

Hi @v-yamao-msft,

I have a free personal licence, and I do not suppose that it can expire. I did have a premium licence before, but that have expired quite a while before.


Helpful resources


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,170)