Forum Discussion

Paul_By's avatar
Paul_By
Copper Contributor
Nov 08, 2021
Solved

MS Team. Bot. TeamsInfo.GetMemberAsync returns 'Forbidden'

Hi.  Bot handles "Messaging Extension Query activity" (OnTeamsMessagingExtensionQueryAsync) request. One by One chat (My User - User 1). I need to know "My User" email address. I use  await Teams...
  • Paul_By's avatar
    Paul_By
    Nov 08, 2021
    Workaround: I get 'TeamsChannelAccount' data (TeamsInfo.GetMemberAsync(...)) in "Bot-User" conversation (first step) and put it into 'UserState'. Then I can get and use it.
    My Bot: "scopes": ["personal"]. Maybe this is the reason of the issue.

Resources