Hi, I wonder if there is the possibility of automatic share group during join AD users to TV. Now i can synchronize users from AD but i must manualy share group for this users in TV, anyone knows how to do it automaticly?
Hi,
you can do it via API (POST to /api/v1/groups/<gID>/share_group). You must submit a list with users and specific permissions for each. You'll find all details in API reference PDF (section 3.4.7).
Check if this helps you. I'm available if you need more detail.
Regards.
I would Like a Bit more details
I have this script started but I'm Missing how to add userid and persmissions inside users
$header = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"$header.Add("authorization", 'Bearer token')$groupID = "gxxxxxxxx"$permission = "readwrite"$body = (@{ userid = "uxxxxxxxx" permissions = $permission }) | ConvertTo-JsonInvoke-RestMethod -Uri "https://webapi.teamviewer.com/api/v1/groups/$groupID/share_group" -Method Post -Headers $header -ContentType application/json -Body $body
So that is would look like
{ "users" : [ { "userid" : "u33516235", "permissions" : "read" }, { "userid" : "u51235", "permissions" : "readwrite" }] }
If you would have a bit of insight on this I would greatly appriciate
Thanks