Teams: Rights Management

Alexandre MONCHAIN 21 Reputation points
2022-02-10T08:33:17.697+00:00

hello,

I manage a company that has since COVID decided to use TEAMS to manage its data.
Members of the direction are demanding access to all team channels.

Is it possible without having to manually add them on all these channels to give them general access?
Ideally, they should also be automatically added as a member in the new Teams channels by default.

If I can go further, the ideal would be to have a group whose members are automatically members of TEAMS channels.

thanks

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
8,995 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 94,131 Reputation points MVP
    2022-02-10T10:59:04.617+00:00

    You have to add them to each Team, and private channel, either manually or programmatically via the Teams PowerShell module/Graph API. The Add-UnifiedGroupLinks cmdlet from Exchange Online module is also an option.
    In the future, it would be possible to also use a group, but currently nesting another group as a member of a given team is not supported.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alexandre MONCHAIN 21 Reputation points
    2022-02-10T11:02:01.53+00:00

    Thank you for your reply.
    I started writing a script for this. Can you give me your opinion ?

    thanks.

    # Ajouter un membre à TOUS LES CANNAUX TEAMS privés de TOUTES LES EQUIPES
    # Installer le module TEAMS :
    # Install-Module MicrosoftTeams
    
    function Add-MemberToAllTeamsPrivatechannel
     {
        param (
        $UserMail
        )
        process
        {
    
            # Connect to the Teams module
            Connect-MicrosoftTeams
    
            # Récupération de toutes les équipes TEAMS
            $AllTeam = Get-Team
    
            #Parcours des équipes
            foreach($team in $AllTeam)
            {
                # Ajout de l'utilisateur à la TEAM
                Add-TeamUser -GroupId $team.GroupId -User $userMail
                # Récupération des canaux privés de l'équipe
                $allprivatechannel= Get-TeamChannel -GroupId $team.GroupId -MembershipType Private
    
                # Parcours des canaux privés
                foreach($privatechannel in $allprivatechannel)
                {
                    # Récupération du nom du canal privé
                    $privatechannelname=$privatechannel.DisplayName
    
                    # Ajout de l'utilisateur dans le canal
                    Add-TeamChannelUser -GroupId $team.GroupId -DisplayName "$privatechannelname" -User $UserMail
                }
            }
        }
     }