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.
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
āSep 18, 2023 12:52 AM
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
āSep 18, 2023 09:04 AM
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.
āSep 18, 2023 08:39 AM
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
āSep 18, 2023 08:44 AM
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
āSep 18, 2023 09:04 AM