Hi @Vijaykanth
First grant your application the ChannelMessage.Send
delegated permission.
Go to the Azure AD portal and log in with the global administrator>App registrations>your app>API permissions>Add a permission.
Then use the auth code flow to get the access token:
1.Run the URL in the browser and log in with your work account to get the authorization code.
https://login.microsoftonline.com/{tenant id}/oauth2/v2.0/authorize?
client_id={client id}
&response_type=code
&redirect_uri={redirect url}
&response_mode=query
&scope=ChannelMessage.Send
&state=12345
2.Redeem an access token with your authorization code in postman.
Finally use the token to call the graph api endpoint to send the message.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.