add all mailbox user to public folder in office 365

%3CLINGO-SUB%20id%3D%22lingo-sub-298593%22%20slang%3D%22en-US%22%3Eadd%20all%20mailbox%20user%20to%20public%20folder%20in%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-298593%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20Forum%2C%3C%2FP%3E%3CP%3Edid%20anyone%20have%20experienced%20adding%20all%20mailbox%20users%20to%20public%20folder%20in%20office%20365%3F%3C%2FP%3E%3CP%3Ewe%20are%20using%20office%20365%20and%20we%20deployed%20public%20folder%20and%20we%20don't%20want%20to%20add%20user%20by%20manual%20to%20public%20folder%2C%20because%20we%20have%20around%20600%20mailbox%20users%2C%20so%20how%20we%20can%20add%20all%20users%20by%20script%20or%20command%20line%3F%3C%2FP%3E%3CP%3Ethanks%20forum.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-298593%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-298654%22%20slang%3D%22en-US%22%3ERe%3A%20add%20all%20mailbox%20user%20to%20public%20folder%20in%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-298654%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20don't%20need%20to%20%22add%22%20users%2C%20simply%20adjust%20the%20%22Default%22%20permissions%20for%20the%20PF%20in%20question.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-298644%22%20slang%3D%22en-US%22%3ERe%3A%20add%20all%20mailbox%20user%20to%20public%20folder%20in%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-298644%22%20slang%3D%22en-US%22%3EYep%2C%20public%20folders%20in%20EXO%20is%20a%20kind%20of%20comes%20and%20goes%20story%20%5E-%5E%20Microsoft%20has%20tried%20to%20remove%20them%20from%20EXO%2C%20but%20they%20have%20to%20stop%20this%20idea%20due%20to%20the%20heavy%20use%20many%20organizations%20is%20still%20doing%20of%20public%20folders.%20The%20recomendation%20here%20is%20to%20replace%20the%20use%20of%20public%20folders%20and%20use%20SPO%20instead....by%20the%20way%2C%20to%20answer%20your%20question%20take%20a%20look%20at%20the%20following%20PS%20cmdlet%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fsharing-and-collaboration%2Fadd-publicfolderclientpermission%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fsharing-and-collaboration%2Fadd-publicfolderclientpermission%3Fview%3Dexchange-ps%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIt's%20intended%20to%20provide%20permissios%20access%20to%20a%20public%20folder%20so%20it%20should%20be%20enough%20for%20your%20scenario%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-298612%22%20slang%3D%22en-US%22%3ERe%3A%20add%20all%20mailbox%20user%20to%20public%20folder%20in%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-298612%22%20slang%3D%22en-US%22%3EHello%20Peang%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20agree%20with%20Chris%2C%20please%20consider%20before%20you%20move%20forward%20with%20it.%3CBR%20%2F%3ETo%20migrate%20using%20script%20please%20use%20Exchange%20Online%20PowerShell%3CBR%20%2F%3E%3CBR%20%2F%3ENew-Mailbox%20-PublicFolder%20-Name%20MasterHierarchy%20%26amp%3B%20New-Mailbox%20-PublicFolder%20-Name%20%3CUSERNAME%3E%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20see%20the%20step%20by%20step%20procedure%20documented%20here%20and%20let%20me%20know%20if%20you%20have%20any%20further%20question.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fcollaboration-exo%2Fpublic-folders%2Fcreate-public-folder-mailbox%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fcollaboration-exo%2Fpublic-folders%2Fcreate-public-folder-mailbox%3C%2FA%3E%3C%2FUSERNAME%3E%3CLINGO-SUB%20id%3D%22lingo-sub-298598%22%20slang%3D%22en-US%22%3ERe%3A%20add%20all%20mailbox%20user%20to%20public%20folder%20in%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-298598%22%20slang%3D%22en-US%22%3EThe%20first%20question%20is%20why%20public%20folders%3F%20You%20shouldn%E2%80%99t%20be%20deploying%20those%20as%20those%20are%20the%20thorn%20in%20Microsoft%E2%80%99s%20side%20trying%20to%20get%20rid%20of%20them.%20I%20wouldn%E2%80%99t%20want%20to%20start%20on%20something%20that%20really%20doesn%E2%80%99t%20have%20development%20support%20going%20forward.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20this%20something%20new%20or%20an%20existing%20function%20you%E2%80%99re%20moving%20over%3F%3C%2FLINGO-BODY%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Visitor

Dear Forum,

did anyone have experienced adding all mailbox users to public folder in office 365?

we are using office 365 and we deployed public folder and we don't want to add user by manual to public folder, because we have around 600 mailbox users, so how we can add all users by script or command line?

thanks forum.

4 Replies
Highlighted
The first question is why public folders? You shouldn’t be deploying those as those are the thorn in Microsoft’s side trying to get rid of them. I wouldn’t want to start on something that really doesn’t have development support going forward.

Is this something new or an existing function you’re moving over?
Highlighted
Hello Peang,

I agree with Chris, please consider before you move forward with it.
To migrate using script please use Exchange Online PowerShell

New-Mailbox -PublicFolder -Name MasterHierarchy & New-Mailbox -PublicFolder -Name <Username>

Please see the step by step procedure documented here and let me know if you have any further question.

https://docs.microsoft.com/en-us/exchange/collaboration-exo/public-folders/create-public-folder-mail...
Highlighted
Yep, public folders in EXO is a kind of comes and goes story ^-^ Microsoft has tried to remove them from EXO, but they have to stop this idea due to the heavy use many organizations is still doing of public folders. The recomendation here is to replace the use of public folders and use SPO instead....by the way, to answer your question take a look at the following PS cmdlet: https://docs.microsoft.com/en-us/powershell/module/exchange/sharing-and-collaboration/add-publicfold...

It's intended to provide permissios access to a public folder so it should be enough for your scenario
Highlighted

You don't need to "add" users, simply adjust the "Default" permissions for the PF in question.