Teams integration breakfix

GuruR
Tera Contributor

Hello All,

 

In our current organization we have implemented a Teams integration. Where are getting an error message as 404 while authenticating.  Where as Oauth token is valid while validating it.

 

GuruR_0-1752843768780.png

 

 

4 REPLIES 4

Zach Koch
Giga Sage
Giga Sage

This is more than likely related to the set up for permissions on the Microsoft side. Take a look at these links to confirm that the Microsoft App is set up correctly.
Graph API 401 Unauthorized error 
https://www.youtube.com/watch?v=wspwRL564C4 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Bhimashankar H
Mega Sage

Hi @GuruR ,

 

It seems like there is an issue with authorization. It is unable to validate the auth key.  If you have used anything from below.

1. API Key: It will be in the endpoint specifying the apiKeyId

2.HTTP Header's : Authorization and content-type, you need to specify the authorization and content type in HTTP headers, shown in below

 

BhimashankarH_1-1753011553233.png

there may be some content that needs to be added in request body.

 

3. OAuth2.0 then, configure the OAuth profile properly and carefully check when the token is generated and how it being getting accessed. Verify the OAuth configuration and click the 'Get OAuth Token' link to request a new token and check for how much it is valid.

 

Finally check if the HTTP method is working.

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful'. Thanks!

 

Bhimashankar H
Mega Sage

Hey @GuruR ,

 

I hope you saw my reply.
If my response points you in the right directions, please consider marking it as 'Helpful'. It will benefit to future readers as well and close the thread.

 

Your coordination will help community grow stronger!

 

Thanks,
Bhimashankar H

kaushal_snow
Mega Sage

Hi @GuruR , 

 

It seems a mismatch or misconfiguration in your integration setup. Ensure that the token's audience (aud), tenant ID (tid), and scopes (scp) match your app's configuration. Also, verify that the API endpoint you're calling is correct and accessible. For more details, refer to the Microsoft Teams authentication troubleshooting guide - https://support.microsoft.com/en-us/office/why-am-i-having-trouble-signing-in-to-microsoft-teams-a02...

 

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/