Assign/reasssign via script to specifc group
HansO
Posts: 12
Hello
I'm trying to create a script that assing/reasssing a device to a specific group
I'm running the following via Powershell:
& "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" assign --api-token=$APITOKEN --reassign --alias $ENV:COMPUTERNAME --group-ID $GROUPID --grant-easy-access
But the log files shows
DeviceAssignmentStarter::Run: device assignment failed - WebAPI failed to perform requested action - invalid_token (2), Access token does not have the required permissions for this function.
What permissions do i need for the apitoken to assign/reassign the device?
Tagged:
0
Answers
-
I found the answer here:
You can create a script-token in your user profile > Apps. This script token needs at least the following permissions:
- Group management → View, create, delete, edit and share groups
- Computers & Contacts → View, add, edit and delete entries
0