The CreatorCon Call for Content is officially open! Get started here.

'Error while authorizing the user' - Teams and ServiceNow Integration, Self Configured app.

AshutoshB
Tera Contributor

We are integrating ServiceNow with MS Teams. And authenticating users using AD (Entra ID). We are using Service Principal (not the integration user).

Now the Integration works properly if Teams and Snow instance are on the same browser and I have logged in the Snow instance. 

But if the Snow instance is not logged in than the Team's Custom app shows 'Error while authorizing the user'. 

And so the integration doesn't work on the teams desktop app as well.


1 REPLY 1

nityabans27
Giga Guru

Hi @AshutoshB,

You’ll need to implement token-based authentication (OAuth 2.0 with Entra ID) properly so Teams can independently obtain and pass an access token to ServiceNow without relying on a logged-in browser session.
That means setting up:

  • A valid OAuth provider in ServiceNow linked to Entra ID,

  • And ensuring your Teams app uses SSO (Teams + Entra ID) to exchange the token directly with ServiceNow.

Basically: move away from session-based login dependency → go for token-based SSO integration.