Announcements

TeamViewer 14.5 has been released. See the Change Logs here.

Highlighted
Posted by DanRemote
Photon

Sharing Groups Through API

Hi,

I am trying to use the Team Viewer API to manage various users and devices.

The aim is to be able to connect to a device without a password with dynamic permissions set through the API.

I am running into an issue when trying to Share a group of devices with a user. Everything is setup for it to work. If I do everything through the API except sharing the group and I do this through the TeamViewer Management Console, all works perfectly. However, if I call the API to share the group, the share appears on the Management Console but access is not granted.

The API call I am making is:
POST: https://webapi.teamviewer.com/api/v1/groups/<MY GROUP ID>/share_group
With the body:
{
    "users": [
        {
            "userid":"u**Please do not post TeamViewer IDs**",
            "permissions":"readwrite"
        }
    ]
}

According to the API documentation this should work however, despite the share appearing on the front end, the connection still requests a password.

Am i doing something wrong or is this non functional within the API?

Please help