So I had a need to find all the office 365 unified groups in an office 365 tenant, see if they are active and if they are a team.
So I wrote this.
It uses Office 365 graph and I assumes you have already setup office graph access. If you have not, check out this link to set things up.
Let me know what you think!
YouTube demo can be found here: https://youtu.be/zjN9_WxbXDA
I do like Office 365 Teams, and have actually started to use the Teams App instead of Skype :-o
If you have not played with it, do, you will love it.
Anyway, with a Team Channel, you can create an Incoming Webhook connector, that allows you send data to a channel.
In Teams, click on channel and the ellipse (…) and click on Connectors.
In the connectors list find “Incoming Webhook” and click configure.
Give the connector a name and click Create.
This will create the connector and give you it’s url. Take a copy of it.
You can then use the following PowerShell cmdlets to post to the channel:
$TeamChanneluri = "# the channel url #"
"text": "You can use HTML codes like <B>bold</B> and a <P/>new line or <HR/>line"
Invoke-RestMethod -uri $TeamChanneluri -Method Post -body $body -ContentType 'application/json'
How cool is that! What is good is that you can some standard html codes to make things look nice!