Great so now i’ve the name with the sku I want to use to discover my personal college student user base since all my personal people must accredited with that sku. To be sure I’m able to operate an instant PowerShell command to pump out a list of the people with that license. I’m going to achieve this while having it exhibit right when you look at the PowerShell window since I have only 18 consumers however you may choose to dispose of they to a CSV within generation conditions.
- In this exact same PowerShell screen operate: get-msoluser -all | where-object
- Once that works you should read a listing such as this:
Realize that You will find a€?-all’ listed in the order after a€?get-msoluser’ though avoid the use of they in my own display images; the reason being my beginner matter is actually 18 but the’s are so much more. Everything in my personal pupil permit export looks good thus I today see i could choose in just my personal people by their particular license and employ that to assign our very own newly developed messaging rules!
Assigning the messaging policy to only pupils predicated on her permit
We are going to blend the PowerShell order from above we regularly read all people making use of the licenses of M65EDU_A5_STUDENT using Cs-TeamsMessagingPolicy order to next apply it to the people people.
To achieve this we intend to incorporate a varying to accommodate the people we pull-in following pipe those customers into the Cs-Teams order. Below is what all round demand seems like: $members=get-msoluser -all | where-object
Let’s break up that demand real rapid:a€“ $members may be the changeable which will hold the consumers we are taking ina€“ Get-MSOLUser is a typical demand when working with consumers in Azure offer / workplace 365a€“ We are then seeking consumer things with an AccountSkuID complement of a€?M365EDU_A5_STUDENTa€?
As soon as it operates we could next simply type $people and click submit observe the complete record (once again you need to pipe your own to a CSV for evaluation in creation). Below you will see the initial order operate and myself looking at the customers when you look at the adjustable:
The audience is today ready to progress and set his, and all of additional people, to the brand new zero chat plan
Before we replace the texting plan let’s see what a student is allocated to ensure that when we manage with your change we have something you should examine. Inside groups Admin middle choose customers in left hand routing pane.
We can note that Al provides 9 international strategies allocated and 0 per-user strategies assigned. Meaning he is merely assigned to worldwide default procedures which we can examine by hanging on top of the strategies allocated text.
We are able to additionally examine what chatting coverage is actually placed on students by running the immediate following: Get-CsOnlineUser -Identity userUPN | ft DisplayName, TeamsMessagingPolicy
We are able to see my personal test pupil Al has nothing detailed for texting Policy because he or she is assigned the Global Default:
Fast suggestion: when creating major improvement via PowerShell it could be smart to break this up into batches. We don’t cover how to accomplish that in this article but seriously something to see.
Whenever you are prepared to change the messaging rules assignment to all your children utilize the exact same PowerShell admin screen from prior to work this demand: foreach($associate in $customers)
Let us breakdown that command genuine rapid:a€“ our company is run a foreach and producing a temporary changeable of $member which is familiar with run consumer by consumer from your directory of $membersa€“ we are next adding the policy (granting) of a€?EDU No Private Chata€? we developed prior to each associate using their UserPrincipalName from your $people checklist