<h2>"SAM - Import User Subscriptions" jobs failing</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul><li>When Scheduled job "SAM - Import User Subscriptions" gets completed (which runs weekly).In the Software Asset Job Results (samp_job_log) table the respective job getting failed</li><li>As this is related to O365 Integration, when validated the system log (sys_log) for the error related to "SAM:SampO365Admin" and below is the error can be seen</li><li>++<br />SamImportUserSubscriptionsO365: Error: SampO365AdminUnhandled exception for profile : 90325019dbf4881089e06cf3ca961938 : com.glide.communications.ProcessingException: User Not Authenticated. Could not retrieve a new access token with the refresh token. invalid_client, AADSTS7000222: The provided client secret keys are expired. Visit the Azure Portal to create new keys for your app, or consider using certificate credentials for added security: <a href="https://docs.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials">https://docs.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials</a><br />Trace ID: cbfa1757-807f-4cf2-a172-a8efbb935000<br />Correlation ID: 62bfd543-bc06-4f9a-b854-7d2add5e23c0<br />Timestamp: 2021-06-19 05:00:03Z, <a href="https://login.microsoftonline.com/error?code=7000222">https://login.microsoftonline.com/error?code=7000222</a><br />++</li></ul></section></div><div ><h3 >Release</h3><section><ul><li>Quebec</li></ul></section></div><div ><h3 >Cause</h3><section><ul><li>Based on the error logged, <strong>"User Not Authenticated. Could not retrieve a new access token with the refresh token. invalid_client, AADSTS7000222: The provided client secret keys are expired"</strong></li></ul></section></div><div ><h3 >Resolution</h3><section><ul><li>To resolve this issue, Visit the Azure Portal to create new keys for the app, or consider using certificate credentials for added security.<br /><a href="https://docs.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials">https://docs.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials</a></li></ul></section></div></article></div>