Hi,
We have an issue with the O365 Connector.
We generate a token and it works just fine, completes the task with success.
But that only lasts for a day, the next day we get the error "Inventory gathering failed. Error: The remote server returned an error: (400) Bad Request."
We then have to go again and generate another token in order for it to work again. So we basically have to generate a new token every day.
What do you think could be the problem here?
PS: We have multiple clients with O365 connectors (that work just fine), but this specific client is the only one that has two factor authenticator activated on the Microsoft Account. Do you think this could be the reason the token only last for one day?
May 10, 2023 05:18 AM
Hi @andreidrexler , I think the O365 connector does not work with accounts using 2FA. Also, you should try using the client secret method to generate the token. This may be a good approach to bypass the 2FA requirement.
Hope this helps.
Thanks!
May 21, 2023 02:24 PM
Hello @andreidrexler , since we are getting 400 Bad Requests here. I would double-check if the following values are the same on the O365 connector.
May 10, 2023 10:29 AM - edited May 10, 2023 10:29 AM
Hello,
So our values were a bit different than these. But we tried this method and it still won't work more than one day.
May 23, 2023 02:22 AM
Hi @andreidrexler , I think the O365 connector does not work with accounts using 2FA. Also, you should try using the client secret method to generate the token. This may be a good approach to bypass the 2FA requirement.
Hope this helps.
Thanks!
May 21, 2023 02:24 PM
@andreidrexler
What was the solution to your issue? We have what appears to be an identical issue.
Jul 26, 2024 01:40 PM
Hi @karljwogoman ,
The solution was the one suggested by @Alpesh_Gohil.
Switched to client secret method and didn't get the error anymore.
Jul 29, 2024 02:18 AM
Thank you! We are working with our m365 admins to switch to using the client secret. Our connection has been on and off for quite some time.
Jul 29, 2024 08:12 AM
After switching to the client secret, our connection to m365 no longer drops. Thanks for providing the solution to this.
Aug 28, 2024 06:30 AM