Register your Microsoft Teams Communications spoke with ServiceNow instance for OAuth authorization.

Before you begin

Ensure the following:

Role required: admin

Procedure

  1. Navigate to All > System OAuth > Application Registry.
  2. Click New.
  3. Click Connect to a third-party OAuth provider.
  4. On the form, fill in the fields:
    Table 1. Third-party OAuth Provider form
    Field Description
    Name Unique name to identify the record, for example, Microsoft Teams Communications.
    Client ID Client ID created during the app creation. You can copy it from Application overview in the Microsoft Azure portal.
    Client Secret The password you generated when creating the app in Microsoft Azure.
    Default Grant Type Grant type used to establish the token. Select Client Credentials.
    Authorization URL OAuth authorization code endpoint. Enter https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/authorize.
    Token URL OAuth server token endpoint. Enter https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token >.
    Redirect URL OAuth callback endpoint. The URL is automatically filled as https://<instance-name>.service-now.com/oauth_redirect.do.
  5. Right-click in the form header and click Save.
    A system-generated OAuth entity profile is created and displayed in the OAuth Entity Profiles related list. For example, Microsoft Teams Communication default_profile.
  6. Update the OAuth entity profile.
    1. Select the default OAuth entity profile.
    2. On the form, in the OAuth Entity Profile Scopes related list, double-click Insert a new row....
    3. In the OAuth Entity Scope field, click the Search icon search icon.
    4. In the OAuth Entity Scope window that opens, click New.
    5. On the form, fill in the fields.
      Table 2. OAuth Entity Scope
      Field Description
      Name Enter a descriptive name, for example, MS Teams Communications.
      OAuth provider Provider associated with this scope, for example, MS Sync.
      OAuth scope The scope that you are granted by the provider. Enter .default .
    6. Click Submit.
  7. Save the changes.

Result

The OAuth registration is added for Microsoft Teams Communications spoke.