metadata
title: REST API endpoints for LDAP
shortTitle: LDAP
allowTitleToDifferFromFilename: true
intro: >-
Use the REST API to update account relationships between a {% data
variables.product.prodname_ghe_server %} user or team and its linked LDAP
entry or queue a new synchronization.
versions:
ghes: '*'
topics:
- API
autogenerated: rest
About LDAP
You can use these endpoints to update the Distinguished Name (DN) that a user or team maps to. Note that in most cases, you must have LDAP Sync enabled for your {% data variables.product.prodname_ghe_server %} appliance. The Update LDAP mapping for a user endpoint can be used when LDAP is enabled, even if LDAP Sync is disabled.
{% data reusables.user-settings.enterprise-admin-api-classic-pat-only %}