May 20 2020 07:16 AM
I need to create a rule that notifies administrators when a public team is created in Microsoft Teams.
What would be the best way to accomplish this task?
Any suggestion?
Thank you!
May 20 2020 09:03 AM
SolutionYou can configure an Activity alert/Alert policy: https://docs.microsoft.com/en-us/microsoft-365/compliance/alert-policies?view=o365-worldwide
Or you can periodically query the audit log via PowerShell and fetch the "group created" events.
May 20 2020 09:53 AM
I tried to configure the alert policy for creating groups, but there is no way to check if the team is public or private.
And from what I saw in the docs, I think there is no way to reach that level of detail with the creation of alerts.
Thanks for the support.
May 20 2020 10:19 AM
Well yeah, that's if you are after an easy solution. If you want a more robust one, you have to capture the events yourself - all the information you need is within the event properties.
May 20 2020 09:03 AM
SolutionYou can configure an Activity alert/Alert policy: https://docs.microsoft.com/en-us/microsoft-365/compliance/alert-policies?view=o365-worldwide
Or you can periodically query the audit log via PowerShell and fetch the "group created" events.