Get-MSOLUser has a default restrict regarding five-hundred therefore the the flag allows us to rating all membership
Higher so now We have title of the sku I have to take to track down my pupil user base as the all the my personal people will be registered thereupon sku. To be sure I can work with a quick PowerShell command so you’re able to create a summary of this new users having you to definitely licenses. I will do so and just have they display directly in this new PowerShell window since i only have 18 users you may prefer to get rid of they so you’re able to good CSV on the design environment.
- In that same PowerShell screen run: get-msoluser -all of the | where-target
- After one to works you will want to come across a listing along these lines:
Notice that I have ‘-all’ listed in the new order shortly after ‘get-msoluser’ although don’t use they during my screen shots; this is because my personal college student number try 18 but not your’s get become more. Everything in my personal pupil permit export looks good and so i now learn I can come across toward only my personal youngsters because of the the permit and make use of one so you can designate all of our recently authored chatting coverage!
Delegating this new messaging plan to only pupils centered on the permit
We will mix all of our PowerShell order away from above one i accustomed pick all of the profiles for the permit out-of M65EDU_A5_College student towards Cs-TeamsMessagingPolicy demand to help you upcoming use it to people users.
To achieve this we are going to fool around with a varying to help you house the new users i bring in and tube men and women pages towards the Cs-Organizations demand. Lower than is what the overall command turns out: $members=get-msoluser -all | where-target
Let’s break apart one order genuine short:– $players is the varying that will domestic the latest pages we are pulling in– Get-MSOLUser try a fundamental command when using pages into the Blue Ad / Place of work 365– We have been next looking affiliate items which have a keen AccountSkuID matches regarding “M365EDU_A5_STUDENT”
Ahead of i change the messaging policy let us see what a student is now tasked so when we continue with the alter you will find something you should examine. On the Groups Administrator Heart check out Profiles about left give routing pane.
Just after it operates we can following simply type of $participants and you can force get into observe a full checklist (once more you really need to pipe a so you can good CSV having review in production)
We are able to see that Al enjoys 9 globally policies assigned and you can 0 for each-representative principles assigned. This means he is just allotted to internationally default guidelines and therefore we are able to guarantee from the hanging along side principles assigned text message.
We’re now willing to move on and place their, as well as almost every other people, to the the latest zero chat plan.
We can as well as verify what messaging rules try placed on an excellent scholar by the powering the following: Get-CsOnlineUser -Identity userUPN | foot DisplayName, TeamsMessagingPolicy
We are able to discover my try scholar Al doesn’t have anything noted to possess Messaging Policy as the he’s tasked the global Default:
Quick idea: when designing large scale transform via PowerShell it can be wise to-break this right up with the batches. We do not safeguards how to do this in this post however, naturally something you should imagine.
When you’re happy to replace the chatting policy task so you’re able to all of your current college students make use of the same PowerShell admin window off before focus on that it command: foreach($representative for https://besthookupwebsites.net/tr/gay-tarihleme/ the $members)
Let’s break apart you to definitely demand real brief:– our company is running good foreach and performing a short-term changeable off $representative which is regularly wade affiliate by member out of all of our listing of $members– we have been following adding the policy (granting) regarding “EDU No Personal Chat” we created before every single representative with their UserPrincipalName of our very own $users record