O365 Integration SAM - Collect Office 365 Usage job and SAM - Import M365 User Subscriptions failing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 12:34 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 10:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 12:51 AM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 01:38 AM - edited 08-05-2025 01:41 AM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 02:06 AM
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:
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.