11-22-2018 07:55 AM
Hi everyone,
Does anyone know how I can list the channels in a team and their email addresses using powershell.
The Get-TeamChannel does not seem to have too many options.
Thank you.
Matei
11-22-2018 08:21 AM
With current Teams PowerShell module, that's not possible. Let's hope to get this feature in next updates of Teams PS module.
The Unifiedgroup cmdlets from Exchange Online module also cannot be used to get channel information.
Cheers,
H.
06-17-2019 10:35 AM
Hello @a-matudo,
as far as I know the only way to get email address of channel is to use GRAPH
1) get the team groups:
https://graph.microsoft.com/beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')
2)get id of each group and run the following request:
https://graph.microsoft.com/beta/groups/{id}/channels?$filter=endswith(email,'teams.ms')
and get email address of the channel from the response.
Let me know if you'll find more elegant way to do the same.
Regards,
Victor
02-21-2020 11:35 AM
@Victor Ivanidze I havent been able to get this to work. Can you give a screenshot or more info?
02-21-2020 10:01 PM
03-11-2020 04:10 AM - edited 03-11-2020 04:21 AM
@dj562006 I got it to work by changing 'groups' to 'teams' e.g. https://graph.microsoft.com/beta/teams/<id>/channels?$filter=endswith(email,'teams.ms' and it works a treat!
03-25-2020 06:58 AM
@crabduck @Victor Ivanidze I am new to using Graph so its likely I am doing something wrong. Could you post a couple screenshots?
04-14-2020 11:00 AM
Hi @dj562006, please email me directly: viciva(at)yahoo.com
08-24-2020 10:33 AM
I'd like to say that there exists a tool named ChannelAddresses.
This tool allows an Office 365 admin to create as many mail contacts as many mail-enabled channels exist in organization. Each mail contact has an external email address of team and additional custom branded email address (<TC_{ChannelName}_{TeamName}@{yourdomain}>).
Also ChannelAddresses can create a special address list that contains all these contacts. You can name the address list as you like.
10-04-2020 11:39 PM
Strangely I do get all the channels' information but not the email address. It is empty. Does anybody has an idea what this is caused by?
I used the script from https://gallery.technet.microsoft.com/Teams-and-channel-email-9aca757b and the instructions from https://www.reddit.com/r/PowerShell/comments/f0jex0/is_there_a_way_to_get_microsoft_team_channel/
Unfortunately in the technet gallery you cannot post any questions anymore and the redit is already archived.
Can anybody help?
10-06-2020 01:36 AM