Get-MSOLUser enjoys a standard limitation out-of 500 therefore the every flag allows us to get all membership

Get-MSOLUser enjoys a standard limitation out-of 500 therefore the every flag allows us to get all membership

Higher so now I’ve title of your sku I need to use to find my pupil user foot as the all of the my personal college students might be subscribed with this sku. To be certain I’m able to work with an easy PowerShell demand so you’re able to generate a listing of the brand new users which have one permit. I will exercise and possess it screen directly in the PowerShell windows since i dating FilipГ­nskГЅ americkГЅch muЕѕЕЇ only have 18 pages however you may prefer to reduce they to good CSV on your own development ecosystem.

  1. Where exact same PowerShell window manage: get-msoluser -all | where-target
  2. Immediately following one to runs you need to pick an email list similar to this:

Observe that I’ve ‘-all’ listed in the order after ‘get-msoluser’ in the event avoid using it inside my display screen images; it is because my personal student amount are 18 yet not your’s get become more. Everything in my personal scholar permit export looks good therefore i now discover I will pick to the simply my personal children by their permit and employ that in order to designate the freshly written chatting policy!

Delegating the brand new chatting rules to simply children predicated on its licenses

We’re going to combine our very own PowerShell demand away from a lot more than you to definitely we always pick most of the pages into licenses regarding M65EDU_A5_Pupil on the Cs-TeamsMessagingPolicy demand so you can up coming use it to the people users.

To accomplish this we are going to have fun with a changeable in order to home brand new profiles we make immediately after which tube the individuals users towards the Cs-Teams command. Below is really what the overall demand turns out: $members=get-msoluser -all the | where-object

Let’s fall apart one to demand real small:– $participants is the adjustable that may household the new pages we’re getting– Get-MSOLUser is an elementary command when using profiles from inside the Azure Ad / Place of work 365– We’re next finding user objects with an AccountSkuID matches away from “M365EDU_A5_STUDENT”

In advance of i replace the chatting coverage let’s see just what a student is now tasked to ensure whenever we continue all of our changes i’ve something you should evaluate. From the Groups Administrator Cardiovascular system go to Pages about left hand routing pane.

Shortly after they runs we are able to up coming simply method of $professionals and you may push get into to see a full list (once more you will want to pipe your to a CSV to have opinion in the production)

We can observe that Al possess 9 globally formula assigned and you can 0 for each and every-associate principles tasked. It indicates they are only allotted to international standard guidelines and therefore we could be sure because of the hanging along side guidelines assigned text message.

Our company is today prepared to progress and put their, and all most other youngsters, to the the latest zero cam rules.

We could including verify just what messaging coverage was applied to a good beginner from the running the next: Get-CsOnlineUser -Identity userUPN | feet DisplayName, TeamsMessagingPolicy

We could see my personal shot college student Al has nothing indexed having Messaging Policy once the he or she is assigned the global Standard:

Short idea: when making large-scale transform through PowerShell it can be smart to split it up towards batches. Do not safety ideas on how to do this in this article however, without a doubt something to think.

When you find yourself willing to change the chatting policy assignment to help you your students utilize the same PowerShell admin window out-of just before manage that it command: foreach($representative for the $members)

Let’s break apart you to definitely demand genuine small:– we are powering an effective foreach and you can carrying out a short-term adjustable regarding $associate and that’s always wade associate from the representative off the set of $members– we are then including the insurance policy (granting) regarding “EDU No Private Chat” that people composed prior to to every user due to their UserPrincipalName out-of the $users number