Configure Application Registry on the ServiceNow instance
Register the Request-based chat app in your instance to use Microsoft Teams chat for self-configured app environment.
You can register the Request-based chat app in your instance to use Microsoft Teams chat for self-configured app environment using one of the following methods.
- Edit existing Microsoft Teams Chat self-configured app application registry (Recommended)
- Create an application registry for Microsoft Teams chat self-configured app
Parent Topic:Register and configure the Request-based chat application on the Microsoft Azure portal
Edit existing Microsoft Teams Chat self-configured app application registry
Register the Request-based chat app in your instance to use Microsoft Teams chat for self-configured app environment by editing existing Microsoft Teams Chat self-configured app application registry.
Before you begin
Role required: oauth_admin
Procedure
Navigate to All > System OAuth > Application Registry.
Search and select Microsoft Teams Chat Single Tenant application registry.
Fill in the details Client ID and Client Secret on the form.
Select Save.
All > ServiceNow for Microsoft 365 ** > Properties**
Enable the option Set this property to true to use integration hub action for Start Chat / Import chat flows on the ServiceNow for Microsoft Teams properties form
The OAuth profile property Sys ID of OAuth profile for single tenant setup is set to default (OOB) when shipped with application registry.
Select Save.
Create an application registry for Microsoft Teams chat self-configured app
Register the Request-based chat app in your instance to use Microsoft Teams chat for self-configured app environment by creating a Microsoft Teams Chat self-configured app application registry.
Before you begin
Note: Use this procedure only if it is absolutely required.
Role required: admin
Procedure
Navigate to All > System OAuth > Application Registry.
Select New.
Select Connect to a third party OAuth Provider.
On the form, fill in the fields.
| Field | Description |
|---|---|
| Name | Name to uniquely identify the record. For example, enter: Microsoft Teams chat self-configured app |
| Client ID | Client ID created in Azure portal. Provide the value of the Azure application ID in this field. |
| Client Secret | The password you generated when creating the app in Microsoft Teams. For more information, see Register and configure the Request-based chat application on the Microsoft Azure portal. |
| Authorization URL | Authorization URL that includes the tenant ID of your app with the format https://login.microsoftonline.com/\{tenantid\}/oauth2/v2.0/authorize where is the tenant ID created during the app creation in Microsoft Teams. |
| Token URL | Token URL that includes the tenant ID of your app with the format https://login.microsoftonline.com/\{tenantid\}/oauth2/v2.0/token where is the tenant ID created during the app creation in Microsoft Teams. |
| Redirect URL | Redirect URL that includes the instance URL with the format https://<instanceURL>/oauth\_redirect.do Update the <instanceURL> value with your instance URL. |
Microsoft Teams Chat Single Tenant form
Select OAuth Entity Scopes related list.
Add the following scopes.
- Enter
Defaultin Name and enter.defaultin OAuthscope. - Enter
Offline Accessin Name and enteroffline_accessin OAuthscope. - Select Save.
System generates an OAuth Entity profile.
- Enter
See OAuth Entity Profile details in the related list OAuth Entity Profiles.
Open the OAuth Entity Profile record and copy the Sys ID.
Navigate to All > ServiceNow for Microsoft 365 > Properties.
Enable the option Set this property to true to use integration hub action for Start Chat / Import chat flows on the ServiceNow for Microsoft Teams properties form.
Enter the copied OAuth Entity Profile value in the field Sys ID of OAuth profile for single tenant setup. This needs to be setup if you are setting "sn_tcm_collab_hook.teams_use_ih_actions_for_single_tenant" to true.
Select Save.