I am building a flow to add members to teams channel using MS teams graph API. I am using a new ‘Send a Microsoft Graph HTTP request’ action in Power Automate. I am owner of app registered in azure and provisioned delegated permission for ChannelMember.ReadWrite.All. Admin has also granted a consent but i am still getting an "Forbidden" error Missing one of the scope permission ChannelMember.ReadWrite.All.
I have tried it using HTTP action but it requires a access token to be passed in header makes it two step process. 1. HTTP action to get access token 2. HTTP action to graph API to add members to team. Also first HTTP action to get access token is using OAuth 2.0 Resource Owner Password Credentials (ROPC) grant, which is not recommended to use in prod for security reason as it requires to pass password in body and bypasses MFA.
Does ‘Send a Microsoft Graph HTTP request’ action support adding member in the context of user running flow? Any suggestion?