Create a Microsoft Teams application registry entry to connect the created app to ServiceNow instance
Register your Microsoft Teams application with your ServiceNow instance for OAuth authorization.
Vorbereitungen
Role required: oauth_admin
Prozedur
- Log in to your ServiceNow instance.
- Navigate to All > System OAuth > Application Registry.
- Select New.
- Select Connect to a third-party OAuth Provider.
-
On the form, fill in the fields.
- Name: Name to uniquely identify the record, for example, Microsoft Teams for Notify Self-configured app.
- Client ID: Application (client) ID or Bot ID created and copied during the app creation in Microsoft Teams.
Copy the Application (client) ID from the Microsoft Azure portal. Bot ID created in the Microsoft Teams Developer portal and Application (client) ID in the Microsoft Azure portal are the same. For the Application (client) ID or Bot ID information, see Create an app in Microsoft Teams to enable making calls.
Do not copy the App ID of the Microsoft Teams app created on the Microsoft Teams Developer Portal.
- Client Secret: The password you generated when creating the bot in the Microsoft Teams Developer Portal (step 3h).
For the Client Secret information on the Microsoft Azure portal, see Create an app in Microsoft Teams to enable making calls.
- Default Grant Type: Client Credentials.
- Token URL: Token endpoint URL that includes the Directory ID of your app with the structure https://login.microsoftonline.com/<Directory-ID>/oauth2/v2.0/token, where <Directory
ID> is the tenant ID created during the app/bot creation in Microsoft Teams Developer Portal. For the tenant ID information in the Microsoft Azure portal, see Create an app in Microsoft Teams to enable making calls.
Or follow this procedure.
- Log in to the Microsoft Azure portal.
- Navigate to Azure Services > Azure Active Directory > Manage > App registrations.
- Search and open the new bot created for Notify connector by name or by Application (client) ID.
- Copy the Directory (tenant) ID value.
- Go to Endpoints > Get the OAuth 2.0 token endpoint (v2).
- Replace common with the copied Directory (tenant) ID value.
- Select OAuth Entity Scopes in related list and add a record with the values Default in Name and .default in OAuthscope.
-
Set OAuth Entity Profile values.
Hinweis:By default, an OAuth Entity Profile record is created. If it is not available, then you can create one by following these sub-steps.
- Select OAuth Entity Profiles in related list.
- Open the created <>default_profilerecord.
- Select OAuth Entity Profile Scopes in related list.
- Add a record with the values Default in OAuth Entity Scope and <>default_profile in OAuth Entity Profile.
- Select Update to save the changes.