The Zurich release has arrived! Interested in new features and functionalities? Click here for more

O365 Integration SAM - Collect Office 365 Usage job and SAM - Import M365 User Subscriptions failing

PatthiBharathi
Mega Guru

Hello All,

 

I'm facing a challenge in identifying the issue. why SAM - Collect Office 365 Usage job and SAM - Import M365 User Subscriptions scheduled jobs are failing? This is happening from past 3 weeks. before that it is working fine.

How to and where to check why these jobs are getting failed? We have done direct integration with O365 and Adobe. Currently using Yokohama version.

 

 

PatthiBharathi_0-1750921445402.png

 

8 REPLIES 8

Could you please check whether Oauth profile is configured properly or not for the rest message as below?

bernyalvarado
Mega Sage

Very likely the token generated from Azure has expired. Go to Azure, regenerate your connection information and then update it in ServiceNow in your subscription profile (integration profile)

Fatima S Sayyed
Tera Contributor

Are you on Yokohama release ? If yes, can you check logs and confirm if the error is related to plugin ? Also i see the below error for Oauth entity can you confirm if it's mapped correctly ?

abby_singh786
ServiceNow Employee
ServiceNow Employee

Hi  @PatthiBharathi,

 

This issue may be due to the provided Azure client secret key for the app being expired.

 

KB:  https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0995004

 

Kindly visit the Azure portal to create new keys for your app and update them on the integration profile.
Please check with your Azure team further.

 

The steps to fix it are here:

https://learn.microsoft.com/en-us/answers/questions/630141/aadsts7000222-the-provided-client-secret-...

 

https://www.servicenow.com/docs/bundle/zurich-it-asset-management/page/product/software-asset-manage...

 

Also this can an issue with the API Permissions in Azure. Need to add "Organization.Read.All" and the job should work.

 

Regards,

Abhishek

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.