How to get the access token for the MS Graph API that have delegated permissions only in Azure?

%3CLINGO-SUB%20id%3D%22lingo-sub-1558553%22%20slang%3D%22en-US%22%3EHow%20to%20get%20the%20access%20token%20for%20the%20MS%20Graph%20API%20that%20have%20delegated%20permissions%20only%20in%20Azure%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558553%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20post%20message%20in%20MSTeams%20channel%26nbsp%3B%20using%20Graph%20API.%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20call%20this%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-messages%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-messages%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%3C%2FA%3E%26nbsp%3BMicrosoft%20Graph%20API%20but%2C%20I%20am%20not%20able%20to%20get%20access%20token%20for%20delegated%20permissions.%20Can%20any%20one%20help%20me%20with%20the%20code%20structure%20for%20Node.%20How%20to%20get%20Admin%20consent%20for%20delegated%20app%20permissions%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1558553%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1562071%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20the%20access%20token%20for%20the%20MS%20Graph%20API%20that%20have%20delegated%20permissions%20only%20in%20Azure%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1562071%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745982%22%20target%3D%22_blank%22%3E%40sunnykalola%3C%2FA%3E%26nbsp%3B-%20Could%20you%20please%20check%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fauth-v2-user%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edocs%3C%2FA%3E%3FTry%20if%20that%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

I want to post message in MSTeams channel  using Graph API.

I am trying to call this https://docs.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0&tabs=http Microsoft Graph API but, I am not able to get access token for delegated permissions. Can any one help me with the code structure for Node. How to get Admin consent for delegated app permissions? 

1 Reply

@sunnykalola - Could you please check this docs?Try if that helps.