Getting errors with Service Now and SharePoint integration using SharePoint online spoke

kiran115
Tera Contributor

I need to get the data from the SharePoint list. In order to achieve it, I followed the ServiceNow provided docs and I used client credentials type in App registration in ServiceNow. Am able to generate the tokens but when am testing in the flow designer using the actions provided by the spoke, then its throws the below error.

 

"{"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."}"

 

Can anyone please help me out with the correct steps to follow after Microsoft SharePoint online spoke is installed?

5 REPLIES 5

Tushar
Kilo Sage
Kilo Sage

Hi Kiran,

 

The error that you are getting is caused by the fact that the audience URI that you are using in the spoke is not the same as the audience URI that is configured in your SharePoint Online tenant.

To fix this error, you need re-check that the audience URI that you are using in the spoke is the same as the audience URI that is configured in your SharePoint Online tenant.

You can find the audience URI for your SharePoint Online tenant by going to the Azure Active Directory portal and selecting your tenant. Then, select the App registrations blade and select the app registration that you created for the spoke. The audience URI for your SharePoint Online tenant is listed in the Reply URL field.

Once you have made sure that the audience URIs match, you should be able to use the spoke to get data from your SharePoint Online list.

Here are the steps on how to fix the error that you are getting:

  1. Go to the Azure Active Directory portal.
  2. Select your tenant.
  3. Select the App registrations blade.
  4. Select the app registration that you created for the spoke.
  5. Copy the Reply URL field.
  6. Go to the Microsoft SharePoint online spoke configuration page in ServiceNow.
  7. Paste the Reply URL field into the Audience URI field.
  8. Save the configuration.

 

 

Please mark this response as correct and/or helpful if it assisted you with your question.

Regards,
Tushar

Hi @Tushar  .

 

Below is the screenshot of the ServiceNow App registration where you can find the Redirect URL. Please check whether all are correct.

kiran115_0-1689942422762.png

 

Below is the screenshot of from Azure app registration.

kiran115_1-1689942736959.png

Both The redirect URL in the ServiceNow and Azure app registration are same. But still am getting same  error as below

 

"{"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."}"

 

 

 

Sid564
Tera Contributor

Hi Kiran,

 

Were you able to resolve this issue? If so, it would be greatly appreciated if you could share the solution with the community.

 

Thank you!.

SS6
Tera Expert

Hi- what was the fix for the issue. I'm facing the same issue when trying to connect to SharePoint using integration hub OOTB spke.