Skip to main content

Update LDAP mapping for a team

Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://docs.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create a team](https://docs.github.com/[email protected]/rest/reference/teams/#create-a-team) endpoint to create a team with LDAP mapping. If you pass the `hellcat-preview` media type, you can also update the LDAP mapping of a child team.

PATCH/admin/ldap/teams/{team_id}/mapping
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
team_id integer
required
Body Params
required
application/jsonobject
ldap_dn string
required

The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.

Responses

application/json ldap-mapping-team object

Response

description string
optionalnullable
html_url string
optional
id integer
optional
ldap_dn string
optional
members_url string
optional
name string
optional
node_id string
optional
parent
optionalnullable
permission string
optional
privacy string
optional
repositories_url string
optional
slug string
optional
url string
optional