# Integrate both LDAP and SAML 2.0 authentication protocols

**URL:** <https://community.dynatrace.com/t/integrate-both-ldap-and-saml-2-0-authentication-protocols/21000>\
**Category:** Dynatrace Managed\
**Tags:** user-management, dynatrace-managed, sso\
**Created:** [June 17, 2019, 8:06am UTC](https://community.dynatrace.com/t/integrate-both-ldap-and-saml-2-0-authentication-protocols/21000 "2019-06-17T08:06:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [September 22, 2021, 2:46pm UTC](https://community.dynatrace.com/t/integrate-both-ldap-and-saml-2-0-authentication-protocols/21000/6 "2021-09-22T14:46:20Z")

</div>

It’s not entirely like that.

If you set **user repository** to&nbsp; **LDAP** &nbsp;and **enable SSO** to **SAML** protocol then you have still 2 log-in options:

1. **Standard** (Dynatrace log-in form)

In that case, authentication (users source) is retrieved from LDAP; authorization (groups / permissions) are retrieved also from LDAP.

2. **Log-in via SSO** (redirect to SSO)

In that case, user is redirected to the configured Identity Provider (IdP) - SSO. User authenticates there and IdP returns groups membership. And now:

a) If switcher “Assign users to groups based on SAML 2.0 response attribute” is **turned on**

then authorization (groups / permissions) is taken from SSO.

b)&nbsp;If switcher “Assign users to groups based on SAML 2.0 response attribute” is **turned off**

then authorization (groups / permissions) is taken from LDAP.

So in all cases (with or without SSO), when you select LDAP → local users are ignored - as a user query goes to LDAP. If that “local user” doesn’t exist in LDAP, you get _unauthenticated_ response.

If you want to retain local users and have SSO available - turn off LDAP.

Only “admin” user is able to log-in in any mode.

---

_[View the full topic](https://community.dynatrace.com/t/integrate-both-ldap-and-saml-2-0-authentication-protocols/21000)._
