Forum Discussion

dmarquesgn's avatar
dmarquesgn
Iron Contributor
Mar 17, 2023

Get Teams chat ID

Hi, I'm developing some alarmistic in Powershell, which to this day, sends the alerts over email. But I would like to send the alarmistic also to a Teams chat (not a group). I've found a script tha...
  • AndresGorzelany's avatar
    AndresGorzelany
    Mar 18, 2023
    You have to connect like this

    Connect-MgGraph -Scopes "User.Read.All", "Group.ReadWrite.All,Chat.Read,Chat.ReadWrite,ChatMember.ReadWrite,Chat.ReadBasic"

Resources