# Cannot send teams chat

**URL:** <https://community.n8n.io/t/cannot-send-teams-chat/31681>\
**Category:** Questions\
**Tags:** microsoft-teams\
**Created:** [October 17, 2023, 7:02am UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681 "2023-10-17T07:02:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnM](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/johnm/32/30093_2.png) [@JohnM](https://community.n8n.io/u/JohnM)\
**Post date:** [October 17, 2023, 7:02am UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/1 "2023-10-17T07:02:47Z")

</div>

Hi, I have connected microsoft teams and am trying to send a teams chat. I seem to be getting this error:  
RROR: Forbidden - perhaps check your credentials?

403 - {“error”:{“code”:“Forbidden”,“message”:“No authorization information present on the request.”,“innerError”:{“date”:“2023-10-17T06:59:54”,“request-id”:“81287b59-4657-4d55-979c-0821b86f98df”,“client-request-id”:“81287b59-4657-4d55-979c-0821b86f98df”}}} - No authorization information present on the request.

In Azure under the app I have allowed the following API permissions:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/8/f8744a469ed4076085cadcd590df605524a4f3fa.png)

I’m not sure what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [October 17, 2023, 2:41pm UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/4 "2023-10-17T14:41:21Z")

</div>

Hi @JohnM, I am very sorry you are having trouble.

Unfortunately it’s not clear me which version of n8n you are using or which request exactly you are sending to the Microsoft APIScreenshot from 2023-10-17 16-39-35. I quickly tried out the below workflow using n8n@1.11.1:

n8n runs this node as expected:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/e/9e0a0f8eadfd77997a5f8cf218cddc9e98697281.png)

The message also comes through in MS teams as expected:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/1/3/13676e8f9985577a51a9108937bca1da8314619a.png)

Can you confirm the exact version of n8n you are using, share an example workflow and confirm if your OAuth2 credentials are connected? You should see a green “Account connected” status when opening them.

This is how it looks on n8n cloud:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/b/fb64923b8bd5a5f6072e72edbb58f4c8e25864b5.png)

On a self-hosted instance the credentials screen would look like so instead:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/d/1/d151c587770b8770554e05770116c4ebc0edac2f.png)

---

<div class="post-metadata">

**Author:** ![JohnM](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/johnm/32/30093_2.png) [@JohnM](https://community.n8n.io/u/JohnM)\
**Post date:** [October 17, 2023, 8:13pm UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/5 "2023-10-17T20:13:14Z")

</div>

Thanks for your reply. I am hosting this in ec2, version 1.9.3

I recorded a video showing the authorisation of the connector and the issue I’m facing. Does this help?

> **[teams](https://screenpal.com/watch/c06bY6VEi7V)**
>
> teams

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [October 18, 2023, 6:18am UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/6 "2023-10-18T06:18:47Z")

</div>

Hi @JohnM, this looks very much like your OAuth2 authentication with MS Teams has expired (or wasn’t completed in the first place). Can try reconnecting your OAuth2 credentials through the credentials screen?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/0/20d15640fc0ad2d8b89b51f5360f1da3d8da7707.png)

Also, can you confirm the values you are using in each field here (except for any secrets of course) as well as the n8n version you are currently using?

---

<div class="post-metadata">

**Author:** ![JohnM](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/johnm/32/30093_2.png) [@JohnM](https://community.n8n.io/u/JohnM)\
**Post date:** [October 18, 2023, 7:02am UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/7 "2023-10-18T07:02:47Z")

</div>

Hi @MutedJam,

it’s Version 1.9.3

here is a video of me re-authenticating and then facing the same issue

> **[Recording #213](https://go.screenpal.com/watch/c06F1RVEQ1s?redirect=true)**

and here is the screenshot of the details I’m using to authenticate

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/f/bf279af3d763f3e1f40f061cd0d010efc22853c5.png)

thanks

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [October 18, 2023, 8:26am UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/8 "2023-10-18T08:26:48Z")

</div>

Thanks for confirming @JohnM. Is the user you are authenticating as ([...@gmail.com](mailto:...@gmail.com)) a member of the actual MS365 organization you are using MS Teams in? Purely based on the email it seems like this could be a personal account rather than an organization account.

And how exactly have you registered your OAuth2 client in the MS Azure portal? Did you pick the `Accounts in any organizational directory (Any Azure AD directory - Multi-tenant) and personal Microsoft accounts (e.g. Skype, Xbox)` option during the process?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/4/c488b88f81c734515e4129e22642634c4a3941a5.png)

---

<div class="post-metadata">

**Author:** ![JohnM](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/johnm/32/30093_2.png) [@JohnM](https://community.n8n.io/u/JohnM)\
**Post date:** [October 18, 2023, 12:29pm UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/9 "2023-10-18T12:29:29Z")

</div>

Yes you’re right it’s a personal account which I’ve Added as an external user to a chat with my work account for testing. Yes I did choose the option which you had circled.

Is it an issue to use a personal account?

---

<div class="post-metadata">

**Author:** ![JohnM](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/johnm/32/30093_2.png) [@JohnM](https://community.n8n.io/u/JohnM)\
**Post date:** [October 19, 2023, 9:25pm UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/10 "2023-10-19T21:25:24Z")

</div>

@MutedJam could you clarify what the limitation is (if any) in terms of non-organisational accounts? I don’t see any reference to that here:

> **[Microsoft Teams | n8n Docs](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.microsoftteams/)**
>
> Documentation for the Microsoft Teams node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information.

---

<div class="post-metadata">

**Author:** ![jhambach](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@jhambach](https://community.n8n.io/u/jhambach)\
**Post date:** [October 20, 2023, 1:05am UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/11 "2023-10-20T01:05:45Z")

</div>

I don’t use the Teams node for this (I use HTTP) but my endpoint for it is [https://graph.microsoft.com/beta/chats/{{chatid}](https://graph.microsoft.com/beta/chats/%7B%7Bchatid%7D)} **/messages**

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [October 23, 2023, 10:53am UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/12 "2023-10-23T10:53:45Z")

</div>

Tbh, I was not aware of any problems with personal team accounts and am fairly certain I have used them in the past (despite “private” and “organization” Teams always being somewhat separate).

That said, my current test account is an org account and Microsoft has changed teams a lot lately. I’ll try to take a closer look when I have a bit more time.

In the meantime the approach suggested by @jhambach might be worth a shot here (sending the message directly to the respective MS API endpoint using the HTTP Request node). This will allow you to configure the request exactly like you want it and will also return the full response from Microsoft.

---

<div class="post-metadata">

**Author:** ![JohnM](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/johnm/32/30093_2.png) [@JohnM](https://community.n8n.io/u/JohnM)\
**Post date:** [October 25, 2023, 10:48pm UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/13 "2023-10-25T22:48:09Z")

</div>

Just an update for anyone interested, I asked our admin to authorize auth on our organisation account and that one is working fine (so seems like it’s something to do with personal accounts)

thanks for your help

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [January 23, 2024, 10:48pm UTC](https://community.n8n.io/t/cannot-send-teams-chat/31681/14 "2024-01-23T22:48:41Z")

</div>

Closed on January 23, 2024, 10:48pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
