SOLVED

Trigger customized sharepoint library

%3CLINGO-SUB%20id%3D%22lingo-sub-905149%22%20slang%3D%22en-US%22%3ETrigger%20customized%20sharepoint%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905149%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20day%20everybody%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20creating%20a%20new%20Team%20in%20MS%20Teams%20a%20new%20sharepoint%20site%20is%20automatically%20being%20created.%20But%20the%20sharepoint%20document%20library%20is%20empty.%3C%2FP%3E%3CP%3ENow%2C%20is%20there%20a%20possiblity%20to%20have%20the%20document%20library%20being%20automaticcaly%20created%20with%20files%20of%20my%20choosing%20(for%20instance%20copied%20from%20a%20pre-specified%20source)%3F%3C%2FP%3E%3CP%3EThis%20would%20be%20extremly%20helpful%20because%20I%20intend%20to%20open%20up%20a%20Team%20for%20every%20project%20and%20in%20this%20way%20every%20project%20could%20already%20have%20all%20the%20necessary%20documents%20in%20place.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-905149%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-905171%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20customized%20sharepoint%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905171%22%20slang%3D%22en-US%22%3EThis%20is%20something%20you%20can%20do%20for%20sure...if%20you%20are%20asking%20about%20a%20builtin%20support%2C%20it's%20not%20provided....but%20definitively%20something%20that%20you%20could%20do%20for%20instance%20by%20means%20of%20Flow%20or%20even%20a%20serveless%20process%20(An%20Azure%20Function)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-905173%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20customized%20sharepoint%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905173%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20checked%20out%20Microsoft%20Flow%20but%20couldn't%20find%20the%20feature.%20Any%20guidance%20would%20be%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-905480%22%20slang%3D%22en-US%22%3ERE%3A%20Trigger%20customized%20sharepoint%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905480%22%20slang%3D%22en-US%22%3EFor%20one%20of%20our%20customers%20we%20have%20written%20PowerShell%20scripts%20to%20copy%20an%20existing%20Team%20completely%2C%20setting%20the%20name%20of%20the%20team%20etc.%20Something%20the%20out%20of%20the%20box%20copy%20function%20does%20not%20do.%20These%20teams%20had%20a%20tab%20to%20a%20central%20site%20that%20contain%20documents%20and%20news%20for%20all%20users.%20We%20could%20have%20copied%20a%20set%20of%20documents%20to%20each%20team%20but%20for%20instance%20if%20they%20were%20template%20documents%20the%20best%20approach%20may%20be%20to%20have%20a%20central%20location%20so%20that%20they%20can%20be%20updated%20for%20all%20Teams%20once.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-917443%22%20slang%3D%22en-US%22%3ERE%3A%20Trigger%20customized%20sharepoint%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-917443%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214649%22%20target%3D%22_blank%22%3E%40Andrew%20Hodges%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wrote%20a%20short%20PowerShell-script%20that%20sets%20up%20a%20new%20team%20with%20the%20%22New-Team%22%20cmdlet.%3CBR%20%2F%3ESeveral%20shortcomings%3A%3C%2FP%3E%3CP%3E-%20The%20created%20group%20is%20not%20shown%20in%20outlook%20clients%3C%2FP%3E%3CP%3E-%20Team%20members%20are%20not%20subscribed%20to%20the%20group%20%2F%20don't%20follow%20the%20group%20by%20default%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20change%20these%20things%20with%20the%20exchange%20powershell%20module%20but%3A%201)%20you%20have%20to%20set%20proper%20exchange%20permissions%20first%20to%20use%20the%20relevant%20cmdlets%20and%202)%20connecting%20to%20powershell%20exchange%20when%20MFA%20is%20activated%20is%20a%20hassle.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20at%20the%20moment%20you%20cannot%20create%20new%20tabs%20in%20teams%20with%20powershell.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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.

6 Replies
Highlighted
This is something you can do for sure...if you are asking about a builtin support, it's not provided....but definitively something that you could do for instance by means of Flow or even a serveless process (An Azure Function)
Highlighted

@Juan Carlos González Martín 

 

I checked out Microsoft Flow but couldn't find the feature. Any guidance would be appreciated.

Highlighted
Solution
For one of our customers we have written PowerShell scripts to copy an existing Team completely, setting the name of the team etc. Something the out of the box copy function does not do. These teams had a tab to a central site that contain documents and news for all users. We could have copied a set of documents to each team but for instance if they were template documents the best approach may be to have a central location so that they can be updated for all Teams once.
Highlighted

@Andrew Hodges 

 

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.

Highlighted

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

Highlighted

@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.