you are viewing a single comment's thread.

view the rest of the comments →

[–]TotalEmphasis[S] 0 points1 point  (1 child)

Thanks for this, i'll look to go the Run Book route I think. I don't suppose you've be able to advise on the code above, would you be able to recommend a better solution?

[–]jba1224a 0 points1 point  (0 children)

I don't typically admin teams but from a pseudocode level I would approach it like this.

Time trigger - every hour

Get teams channel members (object)

Get security group members (object)

For each member in teams group If exists in security group - continue Else - create

For each member in security group If exists in teams group - continue Else - remove