Forum Discussion
Robbert van Andel
Feb 06, 2018Brass Contributor
Connect-MicrosoftTeams Errors
I have a powershell script that automatically creates a group when someone creates a SharePoint list item. Now, I want to set it up to create a Team instead. I'm running the following code trying to...
Pascal Hohensträter
Mar 28, 2019Copper Contributor
Robbert van Andel
Have you tried?
Connect-MicrosoftTeams -AccountId $userEmail -MsAccessToken $token -AadAccessToken $token
Just give in the token everywhere you can :)
After that, I can call Get-Team and get a list of all Teams...
- axsimulateJul 25, 2023Copper Contributor
And this token comes from where exactly?