Could not connect to Office 365 API, please check your OAuth credentials again. Skip to main content
https://support.okta.com/help/answers?id=9062a000000qubcqas&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Lawrence TsaneLawrence Tsane 

Could not connect to Office 365 API, please check your OAuth credentials again.

I am getting this error and i am not sure how to resolve it. I have successfully configured a domain in office 365 admin page.
however when i set up WS-Federation, i get the following message
"Could not connect to Office 365 API, please check your OAuth credentials again."

Help Please!
Matt MaherMatt Maher (Okta, Inc.)
HI Lawerance, You need to provide a valid username and correct password for a user in your Office 365 subscription that has Global Administrative rights in Office 365. We recommend that you create a separate account that is not the admin account first created when you signed up to Office 365. Let me know if that resolves your issue or if you have any questions.
Alan FoleyAlan Foley
@Lawrence Tsane
Did you find a fix for this? Setting up a new O365 instance in my okta sandbox and getting this exact same issue.

Thanks
Alan FoleyAlan Foley
@ Matt Maher - I have done this, and still getting this issue.

Thanks
Alan FoleyAlan Foley
All - 
To fix this I logged into the O365 tenant with the new admin credentials, and I also did the advanced API authentication at the bottomUser-added image