Add permissions to the Microsoft Azure application
Assign permissions to users to enable them to start chat and import chat conversations with employees from Microsoft Teams to ServiceNow® instance.
Antes de Iniciar
Role required: Microsoft Azure admin
Procedimento
- Log in to the Microsoft Azure portal.
- Navigate to Azure Services > Azure Active Directory > Manage > App registrations.
-
Select the app that is created to enable agents to import the conversations from Microsoft Teams to the ServiceNow instance.
Example: Request based chat app.
- Navigate to Manage > API Permissions > Add a permission > Microsoft Graph.
- Select Delegated permissions.
-
In the Select permissions field, enter the following permissions.
- Offline_access (delegated): ServiceNow stores an access token for each user, which enables them to reauthenticate with ServiceNow, within Microsoft Teams, without having to go through a login prompt. Offline access enables you to refresh the access token automatically.
- Chat.ReadWrite (delegated): The Read part of the Chat.ReadWrite permission enables you to import request-based chats from Microsoft Teams. The Write part of the Chat.ReadWrite permission is used in the “Start Chat” screen, where an opening message is provided on behalf of the agent.
- User.Read (delegated): This permission is added when an app is created to read the basic information of a user like the name and email-id.
- User.ReadBasic.All (delegated): This permission is required to obtain the names and Azure IDs of users. ServiceNow stores the Azure ID to create chats and import chats on behalf of users.
- Files.Read.All (delegated): This permission is used when request-based chats are imported from Microsoft Teams. It enables attachments to be imported as part of the Teams chat.
- ChatMember.ReadWrite (delegated): When a request with a Teams chat is set to inactive, participants are automatically removed from the corresponding chat. This permission is required to remove the chat participants.
- Chat.Create (delegated): This permission is used to create request-based chats.
- Chat.ReadBasic (delegated): This permission is used when request-based chats are imported. It enables you to display which participant sent each message in the chat.
- Presence.Read.All(delegated): This permission is used to fetch a user's presence status from Microsoft Teams.
- Select Add permissions.
- In the API permissions screen, select the Grant admin consent for {tenant} link.
- Select Yes on the pop-up dialog box.
- Opcional:
After upgrading an Azure application, remove the user tokens and reauthorize the users to fetch a token with the added permissions.
- Log in to your ServiceNow instance.
- Navigate to All > System OAuth > Manage Tokens
- Remove the user tokens for the single tenant chat app.
Nota:Users must log in to their Microsoft Azure active directory account to fetch a token with the added permissions.