Great so now i’ve title with the sku I need to used to see my student consumer base since all my personal people must certanly be accredited thereupon sku. To be sure I can manage a simple PowerShell demand to create a list of the consumers which have that license. I will do this while having it showcase straight inside PowerShell screen since I have simply have 18 consumers you might want to dispose of they to a CSV inside creation planet.
- Because same PowerShell screen run: get-msoluser -all | where-object
- Once that works you ought to see an email list similar to this:
Notice that You will find a€?-all’ listed in the command after a€?get-msoluser’ though avoid the use of they in my own monitor images; it is because my scholar count was 18 nevertheless your’s may be a whole lot more. All things in my beginner permit export looks good thus I now see I can select in simply my people by their unique license and make use of that to designate the freshly developed messaging coverage!
Assigning the texting coverage to simply college students centered on their particular permit
We intend to incorporate all of our PowerShell demand from above we used to see all people with the license of M65EDU_A5_STUDENT with the Cs-TeamsMessagingPolicy order to subsequently apply it to those users.
To do this we’re going to make use of an adjustable to accommodate the people we pull-in after which pipe those customers in to the Cs-Teams demand. Below is really what the entire demand appears to be: $members=get-msoluser -all | where-object
Let us breakdown that order genuine rapid:a€“ $customers may be the varying that will dwelling the people we’re taking ina€“ Get-MSOLUser is a general demand whenever using consumers in Azure post / company 365a€“ We are subsequently shopping for user stuff which have an AccountSkuID complement of a€?M365EDU_A5_STUDENTa€?
Once they runs we can easily after that merely type $people and press submit to see the entire listing (again you should pipe your own website to a CSV for analysis in creation). Below you’ll see both preliminary order operate together with me personally examining the customers from inside the changeable:
We are today prepared to progress and place their, and all sorts of other youngsters, to your new zero chat policy
Before we change the messaging plan let’s see what students is currently designated to ensure whenever we carry on with the change we’ve got one thing to contrast. Inside groups administrator Center choose customers into the left hand routing pane.
We can note that Al possess 9 worldwide guidelines allocated and 0 per-user strategies allocated. What this means is he or she is only allotted to global standard policies which we can validate by hanging across the procedures assigned book.
We could furthermore confirm exactly what chatting policy is applied to a student by run the following: Get-CsOnlineUser -Identity userUPN | ft DisplayName, TeamsMessagingPolicy
We are able to read my test college student Al doesn’t have anything indexed for texting rules because he could be allocated the Global standard:
Quick idea: when creating large-scale modifications via PowerShell it could be a good idea to split this up into batches. We do not protect how exactly to accomplish that on this page but undoubtedly something to start thinking about.
If you find yourself prepared to alter the texting rules task to your students utilize the exact same PowerShell administrator screen from before operate this demand: foreach($member in $users)
Let us break up that order actual quick:a€“ our company is working a foreach and generating a temporary variable of $representative that’ll be familiar with go consumer by consumer from your list of $membersa€“ our company is subsequently including the insurance policy (granting) of a€?EDU No exclusive Chata€? that individuals developed prior to each and every member utilizing their UserPrincipalName from our $customers number