Teams Owerner Management

Mario A. Hernandez 171 Reputation points
2022-08-26T22:55:25.25+00:00

Hello,

I have a general question and looking for suggestions. I manage a school district with dozens of schools, k-12. I have literally thousands of Teams. One of the challenges I have is managing who the owners are for each team. When a class is created, the teacher is automatically added as owner. Also, I have another set of teams for each school. The members are added through dynamic membership; however, the owners are a different thing. The owners have to be added manually. Has anybody find a way to automatically add owners based on title or some sort of attribute?

Thanks,

Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2022-08-27T02:56:17.247+00:00

    Hi @Mario A. Hernandez

    You could set up a PowerShell command that schedule runs and updates groups:

    Add-UnifiedGroupLinks (with the -LinkType switch set to owners)

    Example (Teacher in Classroom A):

    $users= Get-User -ResultSize unlimited | where {$_.Department -eq "Classroom A" -AND $_.RecipientType -eq "UserMailbox" -AND $_.jobTitle -eq "Teacher"}  
    Add-UnifiedGroupLinks -Identity Marketing -LinkType owners -Links ($users.UserPrincipalName)  
    

    235392-image.png

    In the example, you would need to create a for-loop that would either go through a spreadsheet or database (table) that has all of your classrooms listed.

    Add-UnifiedGroupLinks (Documentation)

    https://learn.microsoft.com/en-us/powershell/module/exchange/add-unifiedgrouplinks?view=exchange-ps#example-2

    --------------------------------------------------

    If this is helpful please accept answer.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. SokiGuo-MSFT 31,536 Reputation points Microsoft External Staff
    2022-08-29T07:15:13.7+00:00

    Hi @Mario A. Hernandez

    I agree with the above, you could solve this problem according to the above method. This allows you to add bulk members to a Microsoft 365 group.

    For more details about manage Microsoft 365 groups with PowerShell , you could refer to this link's table.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

  2. Mario A. Hernandez 171 Reputation points
    2022-08-29T21:05:40.747+00:00

    Thanks DillonJS. I was afraid of that answer. I have no problem with PS, I just have to come up witht he script for all the scenarios that I encounter. It will be a lot of work up front but I really see the benefit of it. Probably what I can do, is create AD groups for those teams, have helpdesk populate the group as requested, then the PS script will extract those members and add them as owners to the Azure Unified Group.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.