# Ldap in Dynatrace Managed

**URL:** <https://community.dynatrace.com/t/ldap-in-dynatrace-managed/22229>\
**Category:** Dynatrace Managed\
**Tags:** user-management, dynatrace-managed\
**Created:** [October 8, 2019, 2:13pm UTC](https://community.dynatrace.com/t/ldap-in-dynatrace-managed/22229 "2019-10-08T14:13:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 8, 2019, 4:49pm UTC](https://community.dynatrace.com/t/ldap-in-dynatrace-managed/22229/2 "2019-10-08T16:49:59Z")

</div>

I believe your refer to that page: [Manage users and groups via LDAP](https://docs.dynatrace.com/managed/shortlink/managed-ldap)

**Why do we need Users query**  **?**

The user query is used to find a particular user in AD and get the details like meta data or group membership. If a user exists in AD then a password hash can be validated to authenticate the user. To authorize a user group membership attributes are retrieved and mapped to groups configured in Dynatrace.

For example a user “John” logs in. User query is executed to AD and we received:

```auto
"memberOf(working-group, employees)"

```

In Dynatrace you have configured a group “Cluster admins” that is mapped to AD group “working-group” and a group “Environment A viewers” that is mapped to “employees”. Group query is executed to verify that both groups exists in AD and create a mapping.

Then the user “John” is assigned to Dynatrace group “Cluster admins” and a group “employees” as he’s a member of both AD groups.

**Why do we need Group query**  **?**

The group query is used to validate the correctness of group configuration in Dynatrace (mapping of a Dynatrace group and AD groups). By the query results Dynatrace knows which of the configured AD groups exist in AD.

**Do the local account get deleted or just disabled when i enable LDAP?**

If you enable LDAP, you are no longer able to create internal users. All existing users will be overwritten by LDAP user accounts when they log-in. There’s a special “admin” account that will be still active, so you can log-in and adjust configuration. You can remove that user if you want, be then you are vulnerable to lock-in if your LDAP stops to work. In that case the only rescue is to contact Dynatrace support.

---

_[View the full topic](https://community.dynatrace.com/t/ldap-in-dynatrace-managed/22229)._
