Jump to content

Recommended Posts

Posted

Good morning,

 

One of the schools in our foundation would like to use Microsoft Teams with the younger students. However the default policies allows near enough everything.

 

I have created a bespoke policy which should stop students messaging each other via Teams etc.

 

However, I am unable to apply this bespoke policy to a certain group of students unless I apply the policy manually. (might be worth noting that there are 3 other schools in our foundation and all 4 are covered by the same O365 subscription)

 

Does any one have a suggestion how to apply a policy based on group membership or another identifier for a certain set of students?

 

Microsoft support have been as useful as a chocolate fireguard (apologies to all good fireguards out there).

 

Many thanks in advance

 

Cookie

  • 2 weeks later...
Posted
You can use powershell to apply the policies to the students

 

That is true but that will apply the policy to all students.

 

I/we need apply a bespoke policy to a specific set of students.

Posted (edited)
That is true but that will apply the policy to all students.

 

I/we need apply a bespoke policy to a specific set of students.

 

https://docs.microsoft.com/en-us/microsoftteams/teams-quick-start-edu?tutorial-step=5

 

<#
Create a messaging policy and assign it to users via csv.
#>

$CSVfilepath = "csv file with user ids exported from o365"
$data = Import-Csv "$($CSVfilepath)" -Header UserId –delimiter ","
foreach($line in $data)
{
   $userId = $line.UserId
   Write-Host $userId
   Grant-CsTeamsMessagingPolicy -PolicyName "PolicyName" -Identity $userId

}

Edited by mukz
Posted

Thank you @mukz - i'll look at this when I return from annual leave next week

 

https://docs.microsoft.com/en-us/microsoftteams/teams-quick-start-edu?tutorial-step=5

 

<#
Create a messaging policy and assign it to users via csv.
#>

$CSVfilepath = "csv file with user ids exported from o365"
$data = Import-Csv "$($CSVfilepath)" -Header UserId –delimiter ","
foreach($line in $data)
{
   $userId = $line.UserId
   Write-Host $userId
   Grant-CsTeamsMessagingPolicy -PolicyName "PolicyName" -Identity $userId

}

Posted

No worries, you can also get one of the MS guys to dial and create the script for you.

I find them very useful at times.

Posted

Sadly MS "Support" have not been very helpful at all with this issue and they was firmly advised that its not possible to assign a bespoke policy to a certain group of students.

 

 

No worries, you can also get one of the MS guys to dial and create the script for you.

I find them very useful at times.

Posted

REALLY! they were the one who initially provided me with the script.

i usually raise a case through the o365 admin portal when in the specific section e.g teams admin centre.

I never have good experience when calling up.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...