Get-MSOLUser keeps a standard restriction of 500 so the all banner we can get all accounts
Great now i’ve title from the sku I want to used to get a hold of my personal college student user base since all my students need licensed thereupon sku. To be certain I’m able to operate an instant PowerShell demand to generate a list of the people with that license. I’ll do this and have now they showcase straight from inside the PowerShell window since I have only have 18 users you may want to dispose of they to a CSV in your creation ecosystem.
- In that same PowerShell screen run: get-msoluser -all | where-object
- As soon as that runs you ought to discover an inventory similar to this:
Realize that i’ve a€?-all’ placed in the order right after a€?get-msoluser’ though don’t use it in my own monitor shots; simply because my personal pupil amount is 18 but your own’s might far more. Everything in my personal pupil license export is pleasing to the eye and so I now learn i could pick in just my children by their own permit and use that to designate the newly developed texting rules!
Assigning the messaging plan to simply pupils predicated on her license
We are going to integrate our very own PowerShell demand from above that people always discover all users with the license of M65EDU_A5_STUDENT making use of Cs-TeamsMessagingPolicy demand to subsequently use it to those users.
For this we intend to need a changeable to accommodate the users we pull-in right after which pipe those consumers to the Cs-Teams order. Below is what the general command appears like: $members=get-msoluser -all | where-object
Let’s digest that command genuine quick:a€“ $people will be the varying that will house the people we’re pulling ina€“ Get-MSOLUser is actually a typical command whenever using users in Azure AD / workplace 365a€“ the audience is subsequently searching for individual stuff having an AccountSkuID match of a€?M365EDU_A5_STUDENTa€? Read more