Forum Discussion
Sending message/replies to teams channel using graph api
- Jul 06, 2021
pritam2277 - You are currently using Get access without a user(Application permission). Application permissions are only supported for migration. Instead you should try delegated flow: Get access on behalf of a user. Please go though the documentation and you can try it using Postman or Fiddler.
You can also try Get started with Microsoft Graph and Python tutorial which shows fetching calendar information using Graph APIs.
Please let me know if you are still facing any issues.
pritam2277 - You are currently using Get access without a user(Application permission). Application permissions are only supported for migration. Instead you should try delegated flow: Get access on behalf of a user. Please go though the documentation and you can try it using Postman or Fiddler.
You can also try Get started with Microsoft Graph and Python tutorial which shows fetching calendar information using Graph APIs.
Please let me know if you are still facing any issues.
- pritam2277Jul 16, 2021Copper ContributorThanks Wajeed-MSFT for reply. Will it be possible for you have a quick call with me?
- Wajeed-MSFTJul 17, 2021
Microsoft
pritam2277 - Unfortunatly no. Could you please share more specifics on issue which you are facing currently? Did you try Get started with Microsoft Graph and Python?
- pritam2277Jul 21, 2021Copper Contributor
Wajeed-MSFT While sending message to teams channel, I was getting error as protected api access denied. So I requested https://docs.microsoft.com/en-us/graph/teams-protected-apis access for my application. Microsoft teams has approved the access for application but they also mentioned and I quote "Application-only context sending of messages is only supported in teams which are in migration mode and requires Teamwork.Migrate.All. Refer to
https://urldefense.com/v3/__https:/nam06.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2Fdocs.microsoft.com*2Fen-us*2Fmicrosoftteams*2Fplatform*2Fgraph-api*2Fimport-messages*2Fimport-external-messages-to-teams__*3B!!PBKjc0U4!efoGJehVJiOrQ0cSm80rIJBbq6uESN7xRQuSbKTIlCC40BAPeLDJZ7pUxRxjlVRRyVuw1JqXhZQ*24&data=04*7C01*7Cramjsing*40microsoft.com*7C3899600b65624716959e08d93effcb91*7C72f988bf86f141af91ab2d7cd011db47*7C1*7C0*7C637610090665497517*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000&sdata=BS2I1R2ZTD6MsIX*2FL*2FULEgAvshAoY46bzhpSkDdYMeA*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!PBKjc0U4!aXsk4SNzOLYff9-4AWNtTlpHDyV2a8sQFHQnv3OKkDU5tXRA3Vp3yTvYRC5yuFqIdgt130Z185c$ for what migration mode means. "
Does it mean that it's not possible to send messages FROM APPLICATION to existing channels in team as it only support teams in migration mode?