Oct 10 2019 05:14 AM
Good day everybody,
When creating a new Team in MS Teams a new sharepoint site is automatically being created. But the sharepoint document library is empty.
Now, is there a possiblity to have the document library being automaticcaly created with files of my choosing (for instance copied from a pre-specified source)?
This would be extremly helpful because I intend to open up a Team for every project and in this way every project could already have all the necessary documents in place.
Thank you.
Oct 10 2019 05:27 AM
Oct 10 2019 05:30 AM
I checked out Microsoft Flow but couldn't find the feature. Any guidance would be appreciated.
Oct 10 2019 07:12 AM
SolutionOct 17 2019 01:46 AM
I wrote a short PowerShell-script that sets up a new team with the "New-Team" cmdlet.
Several shortcomings:
- The created group is not shown in outlook clients
- Team members are not subscribed to the group / don't follow the group by default
You can change these things with the exchange powershell module but: 1) you have to set proper exchange permissions first to use the relevant cmdlets and 2) connecting to powershell exchange when MFA is activated is a hassle.
Also, at the moment you cannot create new tabs in teams with powershell.
Oct 17 2019 02:30 AM
Hi@fusscreme ,
A bit more information, have a look at the graph API, within our powershell scripts we use the Graph API to copy the full Team. It uses an Azure App but MFA has to be off for the user, we haven't found a way around that in this scenario.
If I was able to share the scripts I would but a client paid for a lot of development time to get these built.
Hope that helps.
Andy
Oct 17 2019 01:28 PM
@Andrew Hodges: Thanks for the hint! I did already stumble upon graph API. If I have more time I might take a closer look at it.
Also, thanks for the info about MFA, that is good to know. And no problem about the scripts, I completely understand.
Oct 10 2019 07:12 AM
Solution