Feb 01 2024 05:02 AM
The API in question:
https://learn.microsoft.com/en-us/graph/api/channel-list?view=graph-rest-1.0&tabs=http
As a user, I am getting the channels that I am not a part of listed. There is no flag that notifies me whether I am, or am not, a part of that channel. But, if I try to get the messages of that channel using
https://learn.microsoft.com/en-us/graph/api/channel-get?view=graph-rest-1.0&tabs=http
then I get 403 error - access forbidden.
The problem is, I don't want to have users see the channels on the channel list, if they are not a part of that channel, but there is no way for me to check if I am a member of that channel, except by sending the 'Get Channel' request for each private or shared channel, to see if I get 403 error.
Is this the expected Graph API behaviour, or not? Is there a way to overcome this issue I am facing?
Feb 01 2024 09:23 AM
Feb 02 2024 07:32 AM - edited Feb 02 2024 07:33 AM
@VasilMichev these are the permissions: Channel.ReadBasic.All ChannelMessage.Read.All ChannelMessage.Send Chat.ReadWrite Contacts.ReadWrite GroupMember.Read.All openid Presence.Read.All profile Team.ReadBasic.All User.Read.All email
I am not the Owner of the Team, I was added to it. I was added to some Private channels and then kicked out of them, but still getting them listed when fetching Channel list.
Maybe I'm missing something, but I don't see an issue with the permissions in my situation.
Feb 11 2024 12:17 PM
@VasilMichev
Any response you might have?