Currently using the delegated permission with an AAD account logged in to create chat for Teams users.
What have done are the belows
- The user is able to login to MS Teams.
- My app client have got the follwing permissions:
User.ReadBasic.All,
TeamsActivity.Send,
Chat.ReadWrite,
ChannelMessage.Send
User.Read.All
- My AAD account have been granted the Teams administration role.
- The test is made on Postman, and have gotten a token from OAuth2.
(1) My first question is , according to this page permissions-reference, the API will do if granted the suited permission.
However, the error that recieved from Postman tells that the User.Read.All permission, which is not mentioned needed for the create chat API, is also needed.
It's important for me to know associated information since applying for permission in the company that I worked for required great efforts and careful look.
(2) My second question is, the error message tells that there is still needed to "consent as user or Grant admin consent in portal".
But I've already signed in OAuth through my AAD account and passwd and gave the app secrets, id.
(3) The last question, is O365 essential for creating Teams chat?
Since the error message also tells this.
Should the O365 be added on the AAD account, the app client or the target Teams user?
It's quite urgent, please help.
Thank you so much for reading this issue.