Assignment API issue
So, recently I made an automated wrapper for TeamViewer installation via SCCM. Largely, this deployment is successful and works as intended.
However, I have several machines that are failing to assign due to this error:
2018-01-30 10:28:37 WebAPI: POST 'devices/assign' (Body: {"device_id":"d344428968","assign_mode":"easyrollout","current_device_password":"REDACTED","enable_easy_access":true})
2018-01-30 10:28:40 => 400 (Body: {"error":"failed_to_assign_manager_to_device","error_description":"FailedToAssignManagerToDevice","error_code":17})
2018-01-30 10:28:40 => Assignment failed with:
POST-Request 'devices/assign' failed with 400 (API-Error: 'failed_to_assign_manager_to_device' (Code 17), Description: 'FailedToAssignManagerToDevice')
This same exact script works for 180 other machines as well as new images. Re-launching the deployment does not resolve. What password is the API trying to use here? What exactly is current_device_password?
One more thing; is there a way to manage endpoints as a centralized list rather than shared lists that all have to be updated individually? Having some issues with that as the whole point of this deployment was to completely reinstall a specific version of TV with unified policy; to do that they had to be re-assigned, and to do that I deleted them all from the web console.. but the contacts still exist on other account lists. Is there no centralized management of endpoint lists?
Comments
-
Did you manage to fix this?
0 -
Did you manage to get a solution to this? Facing the same issue...
0 -
I struggled with this for hours. The problem in my case was that I was granting easy access with a group id, but I was not an owner of the group that was getting assigned. I removed the group-id setting and it assigned flawlessly. I then made a separate API call to assign the device to the appropriate group.
Here is the command I was using that didnt work:
teamviewer.exe assign --api-token=[token redacted] --grant-easy-access --alias "TestAlias" --group-id g175917987 --proxy 127.0.0.1:8888
The command that worked:
teamviewer.exe assign --api-token=[token redacted] --grant-easy-access --alias "TestAlias" --proxy 127.0.0.1:8888
I removed the proxy after I was done debugging.
Hope this is helpful
0