Adding SP groups to multiple document libraries using Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-2403898%22%20slang%3D%22en-US%22%3EAdding%20SP%20groups%20to%20multiple%20document%20libraries%20using%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403898%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20100%20Document%20libraries%20and%20respective%20100%20SP%20groups%20created%20in%20a%20site.%3C%2FP%3E%3CP%3EI%26nbsp%3B%20want%20to%20add%20those%20respective%20100%20sp%20groups%20one%20by%20one%20to%20respective%20document%20library.%3C%2FP%3E%3CP%3EFor%20example%20I%20have%20document%20library%20with%20name%20%22%20ABC%22%20and%20group%20name%20%22ABCGroup%22%20so%20this%20needs%20to%20be%20added%20to%20%22ABC%22%20library.%3C%2FP%3E%3CP%3EI%20can%20create%20CSV%20file%20from%20which%20we%20can%20extract%20data.%3C%2FP%3E%3CP%3EHow%20to%20achieve%20it%20through%20Powershell%3F%3C%2FP%3E%3CP%3EPlease%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanking%20you%20in%20advance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EJayashri%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2403898%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hello,

 

I have 100 Document libraries and respective 100 SP groups created in a site.

I  want to add those respective 100 sp groups one by one to respective document library.

For example I have document library with name " ABC" and group name "ABCGroup" so this needs to be added to "ABC" library.

I can create CSV file from which we can extract data.

How to achieve it through Powershell?

Please help.

 

Thanking you in advance.

 

Regards,

Jayashri

0 Replies