Shibboleth Posted January 15, 2021 Posted January 15, 2021 I've been asked to add a couple of Trust member as 'owners' of classses in Teams. We're using Salamander and SDS so I guess that this can be done by manual editing of CVS files pulled from SIMS - add them to each class in the spreadsheets Powershell's Add-TeamUser would seem more 'standard' but I'd need to get the object-id for the classes in my school and ignore those that were from other schools in the trust and admin teams etc Anyone have any experience or pros/cons about either method or suggest anything else? Thanks in advance.
psydii Posted January 16, 2021 Posted January 16, 2021 (edited) The csv will let you identify the group names. So you can iterate through: Foreach ($class in $classes) {Add-teamuser -groupid (Get-unifiedgroup -anr $class).externaldirectorygroupid -user [email protected] -role owner} The “best” was would be to have the people added to the course in the mid, perhaps as coteachers, or in some oversight capacity like Head of subject/head of faculty and have salamander do it all automatically. Edited January 16, 2021 by psydii 1
Shibboleth Posted January 16, 2021 Author Posted January 16, 2021 thanks for the pointer - did something along these lines: $class_list = Import-Csv '.\teacherRoster.csv' foreach ($class in $class_list) { Write-Host "$($class.sectionid)" $GroupID = (Get-Team -DisplayName $class.SectionID).GroupId Write-Host $GroupID Add-TeamUser -GroupId($GroupID) -User [email protected] -Role Owner }
Cw2k Posted January 17, 2021 Posted January 17, 2021 We use salamander with sds for the main teacher/student sync and have a second sds profile we created manually that we can add csv files to sync course managers. The custom csvs use same naming convention as salamander for section names etc which allows profiles to overlap without causing duplication of courses. Basically classes and teachers is the same content as the salamander ones and the teacher allocation is custom to add the managers, students one can be blank.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now