Highlighted
Posted by rivivi
Photon

Active Directory Integration. Share Group

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?

1 Accepted Solution

Accepted Solutions
Posted by DomLan
Heptagon
Solution

Re: Active Directory Integration. Share Group

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.

Domenico Langone
MCSD: App Builder
2 Replies
Posted by DomLan
Heptagon
Solution

Re: Active Directory Integration. Share Group

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.

Domenico Langone
MCSD: App Builder
Posted by Mabilode
Digon

Re: Active Directory Integration. Share Group

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-Json
Invoke-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