Get Microsoft Team Channel's conversation with organization's any user authentication and not only admin authentication

Casepoint Developer 61 Reputation points
2022-01-05T14:01:05.14+00:00

Hello,

I am calling API for messages (without reply) in a channel (URL: https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages) in graph explorer with organization user but it is giving me 403 - forbidden error like in image . In order to solve this issue I have to give admin consent in Modify Permission. How can I get messages
of user If I don't have an admin account?

How can I get normal user's messages using Microsoft Graph API?

162466-messageinchannelapierror.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Philippe Signoret (Microsoft) 401 Reputation points Microsoft Employee
    2022-01-07T11:32:27.683+00:00

    An administrator will need to consent on behalf of all users, via tenant-wide admin consent.

    0 comments No comments