Great now You will find the name regarding the sku i have to used to see my personal scholar individual base since all my college students needs to be trained with that sku. To be certain i will work a simple PowerShell order to pump out a listing of the consumers which have that license. I’ll achieve this and now have they exhibit straight during the PowerShell window since I have simply have 18 customers however should dump it to a CSV in your manufacturing surroundings.
- For the reason that same PowerShell screen run: get-msoluser -all | where-object
- When that runs you ought to see an email list similar to this:
Realize that I have a€?-all’ placed in the demand just after a€?get-msoluser’ though don’t use it in my screen shots; this is because my personal college student count try 18 but your’s can be a great deal more. Everything in my college student licenses export looks good so I now learn I’m able to select on only my pupils by their particular license and rehearse that to designate the recently produced texting policy!
Assigning the messaging coverage to only children according to their own licenses
We’re going to integrate the PowerShell demand from above that individuals always see all people making use of permit of M65EDU_A5_STUDENT together with the Cs-TeamsMessagingPolicy order to next apply it to those users.
For this we are going to make use of an adjustable to accommodate the customers we pull-in and then pipe those users in to the Cs-Teams demand. The following is what all round demand seems like: $members=get-msoluser -all | where-object
Let’s breakdown that demand real fast:a€“ $people may be the varying that will house the consumers our company is taking ina€“ Get-MSOLUser are a general command whenever using consumers in Azure advertising / workplace 365a€“ Our company is after that looking individual objects which have an AccountSkuID fit of a€?M365EDU_A5_STUDENTa€?
Once it operates we’re able to next simply type $customers and click insert observe the full number (again you will want to pipe yours to a CSV for overview in generation). Below you will observe both the first demand operate in addition to myself evaluating the users from inside the variable:
We’re today prepared to move forward and place his, and all of additional people, to your brand new zero talk policy
Before we alter the messaging rules why don’t we see just what a student is assigned to ensure when we manage with the help of our change we’ve got something you should contrast. In Teams Admin heart head to customers inside the left hand navigation pane.
We could notice that Al keeps 9 global policies assigned and 0 per-user procedures designated. Meaning he’s only allotted to worldwide standard strategies which we are able to confirm by hovering within the policies designated text.
We can additionally examine what messaging policy is placed on students by running the annotated following: Get-CsOnlineUser -Identity userUPN | ft DisplayName, TeamsMessagingPolicy
We could read my trial student Al has nothing listed for Messaging Policy because they are assigned the worldwide standard:
Fast idea: when creating large scale changes via PowerShell it might be smart to split this up into batches. We do not manage just how to do this in this post but seriously something to think about.
When you find yourself prepared to replace the messaging policy project to your children make use of the same PowerShell administrator window from prior to operate this command: foreach($member in $users)
Let’s break up that command actual rapid:a€“ our company is working a foreach and creating a short-term changeable of $member that’ll be accustomed go consumer by user from your variety of $membersa€“ we are subsequently including the policy (giving) of a€?EDU No Private Chata€? we developed earlier in the day every single affiliate using their UserPrincipalName from our $people checklist