Microsoft teams -List members of a channel

itay4 36 Reputation points
2024-11-12T13:44:30.7033333+00:00

Hi,
I'm trying to use this API https://learn.microsoft.com/en-us/graph/api/channel-list-members?view=graph-rest-1.0&tabs=http
with authorization code flow
but when trying to add ChannelMember.ReadWrite.All permission I get this error:
User's image
what should I do?
if I add only application permission I get this error:
User's image

Thanks!

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,331 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,348 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 108.2K Reputation points MVP
    2024-11-12T18:19:55.0233333+00:00

    I don't seem to have any issues adding ChannelMember.ReadWrite.All delegate permissions, perhaps try with a different admin account? Which "flavor" of M365 are you on, is it the global multi-tenant one or Gov/China/something else?

    0 comments No comments

  2. itay4 36 Reputation points
    2024-11-13T07:51:57.2966667+00:00

    No, I have only one admin, and I’m not using a global, multi-tenant, or Gov/China environment. The error is from the portal, so you should be able to identify the problem.
    User's image

    User's image

    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.