LDAP Group Mappings
Get LDAP Group Mappings for the current connection
Returns a list of all LDAP group mappings for the relevant connection.
GET /api/v2/connections/ldap/{connection_id}/group-mappings/
GET /api/v2/connections/ldap/1/group-mappings/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
{
"results": [
{
"sde_group": {
"id": "G1",
"name": "group_1"
},
"id": 15,
"last_modified": "2019-02-28T18:29:06.318772Z",
"ldap_group": "12345"
},
{
"sde_group": {
"id": "G4",
"name": "group_4"
},
"id": 7,
"last_modified": "2019-02-28T16:56:10.133151Z",
"ldap_group": "bob"
},
{
"sde_group": {
"id": "G63",
"name": "someGroupName"
},
"id": 5,
"last_modified": "2019-02-28T14:43:41.447033Z",
"ldap_group": "second ldap"
},
{
"sde_group": {
"id": "G1",
"name": "group_1"
},
"id": 3,
"last_modified": "2019-02-27T19:18:14.100706Z",
"ldap_group": "test"
}
]
}
Query Parameters
Use the following parameters to filter the query resources in the response.
Parameter | Description |
---|---|
search | Filter search queries by one or more of ldap_group and sde_group__name. |
Create an LDAP Group Mapping
Update a specific LDAP group mapping resource.
POST /api/v2/connections/ldap/{connection_id}/group-mappings/
Fields | Required | Description |
---|---|---|
ldap_group | Yes | The name of the LDAP group. |
sde_group | Yes | The ID of the SDE group that the LDAP group maps to. |
POST /api/v2/connections/ldap/1/group-mappings/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
{
"ldap_group": "developers",
"sde_group": "G1"
}
HTTP/1.1 201 CREATED
Content-Type: application/json
{
"id": 1,
"last_modified": "2019-02-28T16:27:46.216296-05:00",
"ldap_group": "developers",
"sde_group": {
"id": "G1",
"name": "group_1"
}
}
Update a specific LDAP Group Mapping
Update a specific LDAP group mapping resource.
PUT /api/v2/connections/ldap/{connection_id}/group-mappings/{group_mapping_id}/
Fields | Required | Description |
---|---|---|
ldap_group | Yes | The name of the LDAP group. |
sde_group | Yes | The ID of the SDE group that the LDAP group maps to. |
PUT /api/v2/connections/ldap/1/group-mappings/1/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
{
"id": 1,
"ldap_group": "developers",
"sde_group": "G1"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 1,
"last_modified": "2019-02-28T16:27:46.216296-05:00",
"ldap_group": "developers",
"sde_group": {
"id": "G1",
"name": "group_1"
}
}
Delete an LDAP Group Mapping
This endpoint deletes a single LDAP group mapping resource, as specified by the id parameter.
DELETE /api/v2/connections/ldap/{connection_id}/group-mappings/{group_mapping_id}/
DELETE /api/v2/connections/ldap/{connection_id}/group-mappings/{group_mapping_id}/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 204 NO Content