---
updatedAt: 2025-09-15T09:14:12.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/jamf-pro/v11.14.0/llms.txt
---

# Retrieve the configured access groups that contain the text in the search param

Retrieves the configured access groups that contain the text in the searchParam.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Jamf Pro API",
    "termsOfService": "https://www.jamf.com/developer-resources/api-license-agreement",
    "version": "11.14.0"
  },
  "servers": [
    {
      "url": "https://yourServer.jamfcloud.com/api"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "swift",
      "ruby",
      "python"
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "security": [
    {
      "Bearer": []
    },
    {
      "ApiClient": []
    },
    {
      "BasicAuth": [
        "/v1/auth/token"
      ]
    }
  ],
  "paths": {
    "/ldap/groups": {
      "get": {
        "tags": [
          "ldap"
        ],
        "summary": "Retrieve the configured access groups that contain the text in the search param\n",
        "description": "Retrieves the configured access groups that contain the text in the searchParam.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Will perform a \"contains\" search on the names of access groups",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "null"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful search.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LdapGroupSearchResults"
                }
              }
            }
          }
        },
        "x-required-privileges": [
          "Read LDAP Servers"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "LdapGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "1"
          },
          "uuid": {
            "type": "string",
            "example": "89AF33FC-123C-1231-AEFD-9C3ED123AFCC"
          },
          "ldapServerId": {
            "type": "integer",
            "example": 1
          },
          "name": {
            "type": "string",
            "example": "Grade School Teachers"
          },
          "distinguishedName": {
            "type": "string",
            "example": "Grade School Teachers"
          }
        },
        "description": "An LDAP group."
      },
      "LdapGroupSearchResults": {
        "type": "object",
        "properties": {
          "totalCount": {
            "minimum": 0,
            "type": "integer",
            "example": 3
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LdapGroup"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "BasicAuth": {
        "type": "http",
        "description": "Basic auth is used only for obtaining bearer tokens from the /v1/auth/token endpoint",
        "scheme": "basic"
      },
      "ApiClient": {
        "type": "oauth2",
        "description": "Jamf Pro API Roles and Clients provide a client ID and secret for obtaining access tokens using the OAuth2 client_credentials grant type",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v1/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-si-base": "swagger.json",
  "x-github-repo": "jamf/Jamf-Pro-API-Schema",
  "x-github-sha": "5f8b85a61ce288205f7b44d478a117fb1acea0c6"
}
```