How Can I Create Folders in Teams Channels?

0
12
Asked By CuriousCoder123 On

Has anyone had success creating folders in Microsoft Teams channels? I've been searching for examples or working solutions but haven't found any. Any tips would be appreciated!

1 Answer

Answered By TechJunkie89 On

Yes, you can create folders using the New-MgDriveItem command. First, get the Team's information with Get-MgSite to find the drive ID. However, I remember using a direct API call to get the drive ID in the past, so I'm not sure if the Get-MgSite command has been fixed since then.

DevExplorer51 -

You can also use PnP.PowerShell since they're essentially just sites. If you're looking to create folders in every channel, you'd need to start by gathering a list of all the channels and their properties to get their URLs. Then you can loop through them to create folders.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.