The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. 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