# Node-red-contrib-m365 configuration

**URL:** <https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132>\
**Category:** General\
**Created:** [13 November 2024 21:09 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132 "2024-11-13T21:09:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jttjtt](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jttjtt](https://discourse.nodered.org/u/jttjtt)\
**Post date:** [13 November 2024 21:09 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/1 "2024-11-13T21:09:51Z")

</div>

I wanted to use OneDrive node to be able to upload/download files to Onedrive. But I was unable to find some sample flow on how to do it. I have tried to make a sample flow like this:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7c0666fa856c1cbd51a7d41441adfd0796509ca7.png)

But I am still getting some kind of error "olconnect.error". I think, there is some problem with Oauth, but I do not know where to start with some debugging... Do you have any idea ? Thanks.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 November 2024 21:10 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/2 "2024-11-13T21:10:58Z")

</div>

Do you need to do it this way? Could you use the OS native OneDrive filing system instead?

---

<div class="post-metadata">

**Author:** ![jttjtt](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jttjtt](https://discourse.nodered.org/u/jttjtt)\
**Post date:** [13 November 2024 21:12 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/3 "2024-11-13T21:12:21Z")

</div>

You mean to save the file to a location on PC, where OneDrive app will synchronize the file?  
I am running Node Red on Linux PC, where I do not have such folder or OneDrive app... But I did not search if I can make something like that on Linux.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 November 2024 21:13 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/4 "2024-11-13T21:13:26Z")

</div>

Yup. There are definitely drivers available.

> **[linux onedrive at DuckDuckGo](https://duckduckgo.com/?q=linux%2Bonedrive%2B&t=vivaldi&ia=web)**
>
> DuckDuckGo. Privacy, Simplified.

Much easier if you can do it that way.

---

<div class="post-metadata">

**Author:** ![jttjtt](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jttjtt](https://discourse.nodered.org/u/jttjtt)\
**Post date:** [13 November 2024 21:15 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/5 "2024-11-13T21:15:26Z")

</div>

Thanks, I will look at it and try... But it would be also nice to learn how to work with the Oauth and M365 node in node red.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 November 2024 21:59 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/6 "2024-11-13T21:59:41Z")

</div>

> [@jttjtt](#):
>
> But it would be also nice to learn how to work with the Oauth and M365 node in node red.

I'm afraid that I've never bothered to try and work that out. M365, being primarily aimed at enterprises and governments (between them where the big money for Microsoft is 🙂 ), can get quite complex because they can't afford security foul-up's.

---

<div class="post-metadata">

**Author:** ![RvG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rvg/32/96613_2.png) [@RvG](https://discourse.nodered.org/u/RvG)\
**Post date:** [15 November 2024 11:46 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/7 "2024-11-15T11:46:20Z")

</div>

Hi, this node is created by the company I work for.

To use it, you need to set up a config node, where you add the details of the Azure app that should be created for this purpose. As the documentation of the config node says:

> To use this node you will need to register an app via the [Azure/Entra ID](https://portal.azure.com/) portal. Then you will be able to obtain the Tenant and Client ID from the app dashboard.

I'd be interested to know how you set this up to get this error message. That way we could improve the error message.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 February 2025 11:46 UTC](https://discourse.nodered.org/t/node-red-contrib-m365-configuration/93132/8 "2025-02-13T11:46:38Z")

</div>

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