We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Error while authorizing user during ServiceNow Employee Center + MS Teams integration

Priyanka_
Tera Contributor

 

Hi Community,

I am trying to integrate ServiceNow Employee Center with Microsoft Teams using a self-configured app. I followed the official doc here:
Product Documentation | ServiceNow

I have completed the steps including registering the app in Azure and uploading the manifest file in Microsoft Teams.

However, I am encountering the following error when trying to log in via Teams:

"Error while authorizing the user"

I have checked other community posts and tutorials, but I haven’t found a solution that works.

Additional details:

  • We use Okta as our identity provider for MS Teams.

  • I am not sure if Okta is causing the authorization to fail, since most tutorials assume native Azure AD login.

  • I’ve verified the Azure app registration and manifest, but the error persists.

Has anyone successfully integrated ServiceNow Employee Center with Teams while using Okta as the IdP? Any guidance on how to correctly configure OAuth / tenant ID / redirect URIs for this setup would be much appreciated.

Thanks in advance!

2 REPLIES 2

Sue143
Tera Expert

Hello @Priyanka_  

I am having the same issue, were you able to find a solution?

I just found out how to do it. 

open table: oidc_provider_configuration

and confirm if the user claim and user field matches as follow:

user claim: upn (usually th default user identifier for teams)

user field: email (or corresponding column in your sys_user table to the upn in Teams)

 

In my case "user claim" was set to a specific service user email. I have replaced by "upn" and worked immediately.

You might as well need to set system property "sn_now_teams.portal.suffix" to "esc" or your employee center suffix