Allowing Users to Connect Their Office 365 Accounts in n8n Without Access to Flows

Hello everyone,

I’m seeking advice on how to enable users to connect their Office 365 accounts to n8n without granting them access to the flows themselves. My goal is to build individual flows for each user to optimize our processes.

I’ve already completed the initial setup steps as outlined in the Microsoft Credential manual (Microsoft Credential Guide), specifically:

  • Registering an application with the Microsoft Identity Platform.
  • Generating a client secret for that application.

These steps are not the issue. What I’m looking for is a way to allow users to add their Office 365 credentials so their accounts are connected in n8n, resulting in a new OAuth2 credential for each user. I would prefer not to approach each employee individually to have them manually enter their credentials into the n8n interface.

Ideally, I’d like to implement a method where users can connect their own accounts, and I can then use these credentials in the respective flows.

Does anyone have suggestions on how to achieve this?

I’m completely open to ideas and eager to explore the possibilities.

Thank you in advance for your help!

Information on my n8n setup

  • n8n version: 1.69.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: macOS

Hey @Schalex

Welcome to the community :raised_hands:

The best option would be the one you don’t want to do, the other option would be to handle the connection outside of n8n and use the api to create the credential.

Hey,

Thank you so much for your quick response! :pray:

I will explore this approach and see how it can streamline our processes.

Thanks again for your assistance!

Best regards,
Alex

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