Jump to content

Recommended Posts

Posted

We currently have A1 Plus licencing, and have Azure connect to sync our AD groups and users to O365, Which works fine.

 

I noticed that no AD synced groups show up in MS Teams , you need to Create a "Office O365" group and add the AD synced users to these groups .

 

No problem , made a couple of PS scripts to pull users from AD into the MS Teams groups .

 

Is this the correct way of doing it ? Does any one have their AD Synced groups show up in Teams ?

 

I'm now onto assigning Policy's to the users which seems like its yet another power shell script ! is this also correct way of doing it...?

 

This office 365 malarkey seems all over the place with some GUI's being able to do certain stuff and the rest requiring power shell automation.

Posted

Yep that's right. Teams uses Office 365 groups (as does Stream and other O365 apps) not AD groups. Think the long term MS strategy is for us all to retire our local AD's and move to native Azure groups/users only.

 

I'm doing what you're doing but with Salamander - syncing AD groups with O365 groups for those that need it and assigning Teams policy packages to users.

  • Thanks 1
Posted
Yep that's right. Teams uses Office 365 groups (as does Stream and other O365 apps) not AD groups. Think the long term MS strategy is for us all to retire our local AD's and move to native Azure groups/users only.

 

I'm doing what you're doing but with Salamander - syncing AD groups with O365 groups for those that need it and assigning Teams policy packages to users.

 

Thanks for the reply ;)

 

I did have a look at salamander, i looked at the output CSV it creates .. Looks like You need to edit the CSV to link a username/email to an Sims account . I ideally wanted all this automated ( which for us doesn't look like this can do this if you dont store students emails in Sims ? )

 

We actually dont even have emails for students which ideally i want to keep that way atm ;)

 

My powershells atm will pull AD accounts from the last couples of days into a CSV, Move them to the correct " teams Group " and assign the policys at the same time.

Posted

Teams is built on Exchange Skype for Business and SharePoint. Users not having mailboxes will limit functionailty and admin capabilities.

 

Scheduling meetings / classes/ seminars works best if users have calendars (and thus exchange online mailboxes)

 

https://techcommunity.microsoft.com/t5/microsoft-teams/teams-dependency-on-exchange-online/m-p/298737

 

https://docs.microsoft.com/en-us/microsoftteams/exchange-teams-interact

Posted
We currently have A1 Plus licencing, and have Azure connect to sync our AD groups and users to O365, Which works fine.

 

I noticed that no AD synced groups show up in MS Teams , you need to Create a "Office O365" group and add the AD synced users to these groups .

 

No problem , made a couple of PS scripts to pull users from AD into the MS Teams groups .

 

Is this the correct way of doing it ? Does any one have their AD Synced groups show up in Teams ?

 

I'm now onto assigning Policy's to the users which seems like its yet another power shell script ! is this also correct way of doing it...?

 

This office 365 malarkey seems all over the place with some GUI's being able to do certain stuff and the rest requiring power shell automation.

Oh my god I been waiting for such a script for years. I've also reached out to salamandersoft so many times over 2 years they are really busy...
Posted
Yep that's right. Teams uses Office 365 groups (as does Stream and other O365 apps) not AD groups. Think the long term MS strategy is for us all to retire our local AD's and move to native Azure groups/users only.

 

I'm doing what you're doing but with Salamander - syncing AD groups with O365 groups for those that need it and assigning Teams policy packages to users.

Can you share these scripts
Posted

Sure here are mine, decided against using Teams as i think im a little late to the game . We have a pretty sturdy setup with RDS and ShowMyHomework.

 

First of all manually create 2 groups in office 365 , One for kids and one for staff.

 

The following script checks for any new user accounts in the last 2 days and exports to CSV . I suggest changing the -2 to something like -5000 to import all your users in AD ( first run). Then set the script up in task scheduler to run every night ( Replace OU pathways to the pathways to your Kids and staff folders on the local AD).

 

Import-Module ActiveDirectory
$Kids = 'C:\Scripts\Teams\CSV\Kids.csv'
$Staff = 'C:\Scripts\Teams\CSV\Staff.csv'
$When = ((Get-Date).AddDays(-2)).Date
Get-ADUser -Filter {whenCreated -ge $When} -SearchBase "OU PATHWAY" -Properties whenCreated |
Select-Object UserPrincipalName| Export-Csv -Path $Kids –notypeinformation
Get-ADUser -Filter {whenCreated -ge $When} -SearchBase "OU PATHWAY" -Properties whenCreated |
Select-Object UserPrincipalName| Export-Csv -Path $Staff –notypeinformation

 

Next script will import them into groups either kids or staff in Azure . Replace Admin name with AZURE admin credentials , Run the line commented below to encrypt a password. Also replace AZUREGROUPIDNUMBER with the groups you created in step 1 . You need to the GROUP ID NUMBER and not the name.

 

#MS Teams Update By Luke 27.04.2020#
# Run This line to Update MS Encrypted Password "Read-Host -Prompt "Enter your tenant password" -AsSecureString | ConvertFrom-SecureString | Out-File "C:\cred.txt""#
Set-ExecutionPolicy Unrestricted -force
$AdminName = "[email protected]"
$Pass = Get-Content "C:\cred.txt" | ConvertTo-SecureString
$Cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $AdminName, $Pass
Connect-MicrosoftTeams -Credential $cred
Import-Csv -Path "C:\Scripts\Teams\CSV\kids.csv" | foreach{Add-TeamUser -GroupId AzureGROUPIDNUMBER -user $_.UserPrincipalName}
Import-Csv -Path "C:\Scripts\Teams\CSV\staff.csv" | foreach{Add-TeamUser -GroupId AzureGROUPIDNUMBER -user $_.UserPrincipalName}

 

I hope this helps you out ;)

  • Thanks 1

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...