Some users may be experiencing issues when trying to access customer resources like the Case Portal or the Product Licensing Center. Our team is aware of the issue and is working to resolve it. Click here for more information.

cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

M365 Connection failure.

Hi

Can anyone tell me why my M365 connection is failing to generate token & subsequently no data is getting imported.

Getting below error:

"Inventory gathering failed. Error: The remote server returned an error: (400) Bad Request"

The account which we have used to configure the connection is having  "Cloud Application Administrator role and Reports Reader role"

Please let me know , if you have any suggestion on this.

regards,

Abhishek

(1) Solution

We don't have control over the token lifetime that is all handled by Mircosoft.

You could instead use the client secret method to authenticate as it allows you to control the expiration date: https://docs.flexera.com/flexera/EN/ITAssets/M365_RegisteringAppAzure_OLH.htm

View solution in original post

(3) Replies
tjohnson1
By Technical Writer
Technical Writer

This error usually means that the token has expired and needs to be regenerated. You can do this from the Beacon UI by editing the connection for M365 and clicking the Refresh Token button.

Hi Johnson,

Even after generating the token , next day it will fail again. Do we have any permanent solution for , we are using the service account which has cloud application reader . 

Appreciate your suggestion

Regards,

Abhishek

 

We don't have control over the token lifetime that is all handled by Mircosoft.

You could instead use the client secret method to authenticate as it allows you to control the expiration date: https://docs.flexera.com/flexera/EN/ITAssets/M365_RegisteringAppAzure_OLH.htm