
In my sample above, I’m storing the Bot’s access token in a local text file, reading it in, and storing it as a SecureString to a variable. Hit the “Try It” button, and provide the Bearer (access token) of your Bot account you’ll see each space the Bot is a member of.Add your new bot to the Webex Teams space you want them to post in.Room ID (where you’re posting the message to).Your Bot’s access token (you’ll get one after you create the bot account).A Bot account (who’s going to post these messages ).Now to get this working, you’ll need some stuff: ContentType "application/json" -Body $json ` $body = message from Powershell to Teams API `n Disregard."
WEBEX TEAMS RSS BOT PASSWORD
$Ciscobottoken = Get-Content \Ciscobot_ADUserBot_token.txt #| ConvertTo-SecureString #Pull in the password from textfile With credit to this article, and through some modification, I got to scripting a sample: #This is definitely required. However, I found some clues for using Powershell in a Cisco DEVNET lesson introducing the Teams API (sign-in required). As a non-developer, the most approachable methods I’d previously seen for addressing Teams via its API had been using Python. Naturally, Webex Teams is fully API-enabled .

I looked at having Powershell write logfiles or send e-mails. While creating a Powershell process to automatically create new Active Directory users based on data sent via our HRIS system, I wanted a way to notify the Helpdesk team that a user had been added and they needed to do a few follow-up tasks (actions I can’t address via Powershell). I happened to be working on a Powershell-based script to create new Active Directory users, and decided to get creative … As is often the case, the IT department is the first customer, kicking the tires and exploring different use cases.

My team has begun rolling out Cisco’s Webex Teams collaboration platform to our internal users. Or, “ API Basics for Powershelling Windows Admins”
