I'm creating an application "valid-microsoftgraph" on "App registrations" in "Azure Active Directory" to connect to graph api using msal written by python . And, I'm using "Client secrets" to connect between msal and "valid-microsoft graph". And, be granting following permissions of "valid-microsoft graph".
- API/Permissions name: Team.ReadBasic.All, type: Application, Status: granted for admin
- API/Permissions name: TeamsActivity.Read.All, type: Application, Status: granted for admin
- API/Permissions name: Channel.ReadBasic.All, type: Application, Status: granted for admin
- API/Permissions name: ChannelMessage.Read.All, type: Application, Status: granted for admin
I want to execute the following get request for "valid-microsoft graph", but it returns "Unknown Error".
- https://graph.microsoft.com/beta/teams/{teams_id}/channels/{channel_id}/messages
- https://graph.microsoft.com/beta/teams/{teams_id}/channels/{channel_id}/messages/delta
- https://graph.microsoft.com/beta//teams/{teams_id}/channels/{channel_id}/messages/{message_id}
Make sure that you have entered the ids that definitely exist for "teams_id" and "channel_id". (I retrieved "teams_id" from "users/{user_id}/joinedTeams") (I retrieved "channel_id" from "teams/{id}/channels")
I'm in trouble because I don't understand why I can't get ChannelMessage, so I'd be very happy if you could help me. Thank you.