Import and Export a list of contacts

Hi,

I need to add near 120 computers to control to my teamviewer, so i am woundering if i can export / import a list of my contacts so i can do this task a lot faster? 

Best Answer

Answers

  • 404-Error – Page not found
  • Esther
    Esther Posts: 4,051 Staff member 🤠

    Hi @crozzle

    Thanks for the hint.

    I updated the link in my previous post and it works again:

    Integrations - User Management

    Best, Esther

    Former Community Manager

  • AssafRdns
    AssafRdns Posts: 1

    Hey,

    What is the best way to export devices list from one user to another ?
    Thank you so much :-)

  • Hi there,

    I have a little problem.
    We recently acquired a company that uses an old team viewer (8).
    There are 100+ devices in this team viewer.

    We also use a team viewer ourselves but use a new license (Coporate)

    How can I transfer the devices from the old environment to our new environment?


    Regards,
    Hendri

  • Hello everyone,

    I have followed the link [ Integrations - User Management ] which was indicated a few years ago (2017 and 2018) by Esther and I agree with PeKa:

    It absolutely does NOT answer the question

    For my part, I need to import 225 users which all 4 of our technicians will be asked to help in the future.

    The question is simple: IS THERE A SIMPLE WAY TO IMPORT INFORMATION FROM A .txt or .csv FILE INTO TEAM VIEWER ?

    It's a simple «yes» or «no» question

  • bryde
    bryde Posts: 1

    Hi!

    I have read the above thread, and have the excact same issue.

    Any news regarding implementing Import / export of contacts/computers ?

    Should really not be so hard to ad this feature to Teamviewer, and it would be a great help to users !!!

    Regards Leif Bryde

  • JeanK
    JeanK Posts: 7,056 Community Manager 🌍

    Hello all,

    To export the computers list, please check the instructions here:

    📄 Exporting a list of my Computers

    To export the user list, please check the instructions here:

    📄 Exporting a list of my Users

    All the best,

    /JeanK

    Community Manager

  • After a few weeks of trying to get the import to work, finally had a win, all 200 devices imported into Teamviewer successfully

    format your CSV file as below

    Device Name

    TeamViewer ID

    Group ID

    Laptop01

    xxxxxxxxxx

    gxxxxxxxxx

    Create your API with the below permissions

    Group management

    Read groups

    Computers & Contacts

    View entries, add entries, edit entries, remove entries

    Powershell :-

    Define API token and TeamViewer API URL

    $apiToken = "INSERT_TOKEN_HERE"
    $teamViewerApiUrl = "https://webapi.teamviewer.com/api/v1/devices"

    Import devices from CSV

    $devices = Import-Csv "C:\tmp\teamviewerDevices.csv"

    Loop through each device in the CSV

    foreach ($device in $devices) {
    $deviceName = $device.'Device Name'
    $teamViewerID = $device.'TeamViewer ID'

    # Add the 'r-' prefix to the TeamViewer ID
    $formattedTeamViewerID = "r-$teamViewerID"
    
    $groupID = $device.'Group ID'
    
    # Create the request body as JSON
    $body = @{
        alias = $deviceName
        remotecontrol_id = $formattedTeamViewerID
        groupid = $groupID
    } | ConvertTo-Json
    
    # Define headers with API token for authorization
    $headers = @{
        "Authorization" = "Bearer $apiToken"
        "Content-Type" = "application/json"
    }
    
    # Make the API call to add the device
    try {
        $response = Invoke-RestMethod -Method Post -Uri $teamViewerApiUrl -Headers $headers -Body $body
        Write-Host "Device $deviceName added successfully."
    } catch {
        Write-Host "Failed to add device $deviceName. Error: $_"
    }
    

    }