Lightweight Directory Access Protocol (LDAP)#
Feature availability
- Available on Self-hosted Enterprise and custom Cloud plans.
- You need access to the n8n instance owner account.
- You must enable user management. Refer to guides for Cloud user management and self-hosted user management.
This page tells you how to enable LDAP in n8n. It assumes you are familiar with LDAP, and have an existing LDAP server set up.
LDAP allows users to sign in to n8n with their organization credentials, instead of an n8n login.
Enable LDAP#
- Log in to n8n as the instance owner.
- Select Settings > LDAP.
- Toggle on Enable LDAP Login.
- Complete the fields with details from your LDAP server.
- Select Test connection to check your connection setup, or Save connection to create the connection.
After enabling LDAP, anyone on your LDAP server can sign in to the n8n instance, unless you exclude them using the User Filter setting.
You can still create non-LDAP users (email users) on the Settings > Users page.
Merging n8n and LDAP accounts#
If n8n finds matching accounts (matching emails) for email users and LDAP users, the user must sign in with their LDAP account. n8n instance owner accounts are excluded from this: n8n never converts owner accounts to LDAP users.
LDAP user accounts in n8n#
On first sign in, n8n creates a user account in n8n for the LDAP user.
You must manage user details on the LDAP server, not in n8n. If you update or delete a user on your LDAP server, the n8n account updates at the next scheduled sync, or when the user next tries to log in, whichever happens first.
User deletion
If you remove a user from your LDAP server, they lose n8n access on the next sync.
Turn LDAP off#
To turn LDAP off:
- Log in to n8n as the instance owner.
- Select Settings > LDAP.
- Toggle off Enable LDAP Login.
If you turn LDAP off, n8n converts existing LDAP users to email users on their next login. The users must reset their password.