TeamViewer Custom Widget

Overview 

TeamViewer custom widget enables you to access their TeamViewer account from within ServiceDesk Plus. 

This article provides easy-to-follow, step-by-step instructions to add a fully operational TeamViewer custom widget in your ServiceDesk Plus instance. 

 Step 1: Create TeamViewer OAuth app 

  1. Log in to TeamViewer.

  2. Go to Profile Settings > Apps and create a new OAuth app.

  3. Select the checkboxes for the following scopes on the right side:

  1. Set the Redirect URI as: $buildUrl/integration/oauth/callback (replace $buildUrl with the actual ServiceDesk Plus hosted domain)

  2. Click Create.

  3. Copy the generated Client ID and Client Secret.

 Step 2: Create TeamViewer Connection in ServiceDesk Plus

In ServiceDesk Plus,

  1. Go to Admin > Developer Space > Connections > Custom Services.

  2. Click Create Service

  3. Name the service and service link as teamviewer

The Service Name must contain only alphanumeric characters, either as a single word or in snake case. For example, teamviewer or sdp_teamviewer.
  1. Choose OAuth2 as the Authentication Type.

  2. Paste the Client ID and Client Secret from the TeamViewer OAuth app.

  3. Enter the following URLs:

  4. Click Create Service

  5. After you create the service, click Create Connection

  6. Name the connection and connection link as teamviewer (similar to service name).

  7. Click Create And Connect.

Step 3: Establish the connection  

  1. After creating the connection, click Connect. You will be prompted to enter the username and password. Use TeamViewer credentials and click Connect.

  2. Copy the JSON code snippet of the connection.

 Step 4: Configure the widget file 

  1. Download the custom widgets zip from here.

  2. Open the plugin-manifest.json file.

  3. Locate the connection array in the plugin manifest file and update it with the copied JSON, as follows: 

"connections": [
{
   "connectionLinkName": "teamviewer",
   "connectionName": "teamviewer",
   "serviceName": "teamviewer",
   "userAccess": false,
   "isUserDefinedService": true,
   "sharedBy": "5"
}
]

   4. After you complete the configuration, re-zip all the files of the widget.

Do not select the folder. Instead, select the files individually and zip them.

Step 5: Upload the TeamViewer Custom Widget  

In ServiceDesk Plus,

  1. Go to Admin > Developer Space > Custom Widget + Custom Widget.

  2. Enter a name for the custom widget. 

  3. Upload the zipped widget file. The supported file format is .zip and the maximum file size is 5MB.

  4. Click Save.

Now, you should be able to access the fully operational TeamViewer custom widget.

How to access the TeamViewer custom widget in ServiceDesk Plus  

  1. Go to an existing request in ServiceDesk Plus.

  2. You should now see a TeamViewer pane added to the request details page on the right side.

  1. In the widget, click Create a Remote session to access the requester's computer screen. 

  2. Click Create a Pilot session to enable requesters to live stream. 

  3. Click Session History to view the previous session history.