Exchange Online - mailbox size

%3CLINGO-SUB%20id%3D%22lingo-sub-508776%22%20slang%3D%22en-US%22%3EExchange%20Online%20-%20mailbox%20size%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-508776%22%20slang%3D%22en-US%22%3EHi%2C%20I%20understand%20that%20you%20can%20change%20the%20mailbox%20size%20of%20single%20users%20using%20thr%20PowerShell%20cmdlets.%3CBR%20%2F%3EHow%20would%20you%20apply%20mailbox%20sizes%20for%20all%20users%20in%20a%20particular%20Azure%20AD%20group%20(email%20enabled)%3F%20So%20that%20when%20a%20new%20user%20is%20created%20and%20added%20to%20the%20group%20they%20also%20receive%20the%20mailbox%20size%3F%3CBR%20%2F%3EThanks.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-508776%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-508819%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20-%20mailbox%20size%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-508819%22%20slang%3D%22en-US%22%3EYou%20cannot%20do%20this.%20There%20is%20no%20trigger%20that%20fires%20on%20becoming%20a%20member%20of%20a%20group%20that%20would%20fire%20an%20admin%20task.%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20if%20you%20had%20your%20own%20provisioning%20system%20then%20you%20would%20add%20the%20rules%20to%20this%20so%20that%20as%20long%20as%20your%20workflow%20was%20followed%20then%20you%20could%20do%20anything%20you%20could%20script.%20But%20just%20adding%20the%20user%20in%20the%20portal%20or%20running%20the%20PowerShell%20directly%20would%20not%20cause%20your%20additional%20changes%20to%20trigger.%20%3CBR%20%2F%3E%3CBR%20%2F%3EThat%20said%2C%20always%20interested%20in%20why%20when%20storage%20is%20not%20an%20issue%2C%20you%20want%20to%20reduce%20users%20mailbox%20sizes%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-508871%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20-%20mailbox%20size%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-508871%22%20slang%3D%22en-US%22%3EI%20guess%20you%20could%20write%20a%20powershell%20script%20that%20pulls%20the%20members%20of%20a%20group%20and%20then%20set%20the%20quota!%20This%20could%20be%20scheduled%20to%20run%20or%20done%20manually!%20But%20not%20dynamically!%3CBR%20%2F%3EYou%20can%20also%20set%20an%20attribute%20of%20some%20sort%20or%20use%20existing%20to%20filter%20on!%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor
Hi, I understand that you can change the mailbox size of single users using thr PowerShell cmdlets.
How would you apply mailbox sizes for all users in a particular Azure AD group (email enabled)? So that when a new user is created and added to the group they also receive the mailbox size?
Thanks.
2 Replies
Highlighted
You cannot do this. There is no trigger that fires on becoming a member of a group that would fire an admin task.

Now if you had your own provisioning system then you would add the rules to this so that as long as your workflow was followed then you could do anything you could script. But just adding the user in the portal or running the PowerShell directly would not cause your additional changes to trigger.

That said, always interested in why when storage is not an issue, you want to reduce users mailbox sizes?
Highlighted
I guess you could write a powershell script that pulls the members of a group and then set the quota! This could be scheduled to run or done manually! But not dynamically!
You can also set an attribute of some sort or use existing to filter on!