Trying to Integrate Servicenow with Sharepoint with Sharepoint Spoke

Saurav Bhardwa2
Tera Contributor

Hi, I have successfully set up the connection for Microsoft Sharepoint Online, by installing the Sharepoint online Plugin. After Completing this, I am trying to create a new Site from Servicenow by using OOB Action "Create Site". 
But Everytime I am getting this error from Servicenow in flow Output Logs"Invalid Authorization Token". This is the error I am getting in REST Response "{"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."}"

May I know what I am missing here? Please check the screenshot below, these are the permissions I have provided in Azure

SauravBhardwa2_0-1683365235517.png

 

 

5 REPLIES 5

Hi Saurav,
Yes we found the root cause of issue.
We traced in application logs the OAUTH script "OAuthUtilSPJWTOnline "was not generating the JWT token and error message "JWT Token is not valid. Please make sure standard claims are valid."

We have created a custom script (same as OOB but the only difference is scope is global) - For example "OAuthUtilSPJWTOnlineCustom" and now its working fine.

For OOTB solution please follow below article:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1112530

We are working to resolve with OOTB solution by defining polices in KMF module.