TeamViewer API - Add User to User Group
CraigMcKenzie
Posts: 3
Hi all,
I'm attempting to use the API to add users to a user group via: POST /api/v1/usergroups/{groupId}/members.
The API is looking for an 'AccountID' as an array [INT] instead of a 'User ID'?
What is this 'AccountID'? The API documentation just mentions:
"List of account identifiers to add to the user group. Must be given as JSON formatted array."
Thanks in advance!
0
Answers
-
For anyone looking, the 'accountid' can be found in the URL of the user's profile. For example, https://login.teamviewer.com/nav/users/company/edit-user/123456789/general - 123456789 would be the user's 'accountid'. I haven't found a way to pull this out via API yet, anyone know how?
0