web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / List Members of a MS T...
Power Automate
Unanswered

List Members of a MS Teams Channel using MS Teams Connector

(0) ShareShare
ReportReport
Posted on by 18

Attempting to use MS Teams and channels for role security in a PowerApp. I tried to get the members (not owner) of particular channels in my MS Team Group. I have been able to use MS Teams Connector to get the Team Group Name, Group Id, Channel Name and Channel Ids and display them in a gallery. I cannot get MicrosoftTeams.ListMembers() to display channel members. The thread type of 'channel' for MicrosoftTeams.ListMembers() throws an error.
I also tried connecting to Office 365 Groups connector using Power Automate to get the group members via an http request, which was successful for the group, but am unable to substitute group id with channel id to get channel members using MemberOf.
Question is it possible to get members of a specific channel within a MS Teams Group in Power Apps or Power Automate?  

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @maggieS ,

     

    List channel members is only supported in Power Automate:

    vjefferni_1-1704268076895.png

     

    I typed custom values "Channel" in Thread Type field. Then Team and Channel fields came up automatically.

     

    Best regards,

  • maggieS Profile Picture
    18 on at

    Thank you for the help. I tried to use this action with a threadType of Channel in your suggestion and the parameter selections were valid for the Team and Channel but on save I get the error msg "Flow Save failed with code : "OpenApiOperationParameterValidationFailed" and message 'Input parameter 'threadType' validation failed in Workflow operation 'List_members:' The API Operation 'ListMembers' requires the property ThreadType to be set to one of its enum values ["groupchat"] but is set to 'Channel'. 

     

    Also I have a question, if I am running this as the user, then if I include it in an app with a button to trigger the power automate flow, the user clicking the button is going to be the user connected to the action, correct? So if they do not belong to any of these channels it will generate an error in the flow?

  • ograss Profile Picture
    2 on at

    Hello, thank you very much for the suggested solution.

    Unfortunately there still seems to be a problem with the thread type “channel”.

    ograss_0-1705472162432.png


    That's a shame, especially because the thread type "channel" is described in the associated documentation.

    https://learn.microsoft.com/de-de/connectors/teams/#list-members

    Since the query via MS Graph API works without any problems,

    https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/members

    I suspect that there is actually just a minor problem in the connector -> the thread type "channel" is not recognized and taken into account correctly.

    When will this problem be fixed? Is there a recommended workaround?

  • msizec Profile Picture
    14 on at

    The problem isn't fixed yet ... 
    Still can't use the "list members' connector with channel option

  • Katie-Adams-Dev Profile Picture
    3 on at

    Seconding the issue with the List Members connection; I get the same error message when using the custom value 'Channel', even though all the subsequent options appear, I still see an error message saying:

    Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'threadType' validation failed in workflow operation 'List_members': The API operation 'ListMembers' requires the property 'threadType' to be set to one of its defined enum values '["groupchat"]' but is set to 'Channel'.'.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard