---
title: Retrieve a Group
slug: retrieve-a-group
docTags: 
createdAt: 2023-11-07T15:25:31.944Z
---

{
  "id": "lin7qBswJ8eF9zZ06V4-V",
  "type": "api-oas-v2",
  "data": {
    "request": {
      "oAuthParameters": [],
      "pathParameters": [
        {
          "kind": "required",
          "name": "urn",
          "type": "string",
          "description": "<p>Group's URN in the \"urn:jobylon:scim:&#x3C;customer_id>:groups:&#x3C;group_id>\" format</p>"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "method": "GET",
    "url": "https://example.com/scim/v2/Groups/{urn}",
    "servers": [
      {
        "url": "https://example.com/scim/v2/Groups/{urn}",
        "description": "Jobylon Staging"
      }
    ],
    "examples": {
      "selectedLanguageId": "NnUiwl-aDnZqeO8ETqF-w",
      "languages": [
        {
          "id": "NnUiwl-aDnZqeO8ETqF-w",
          "language": "curl",
          "label": "cURL",
          "code": "curl --location -g --request GET 'https://example.com/scim/v2/Groups/{urn}' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'"
        },
        {
          "id": "QCcRyXcaCSBm79I6qmnX3",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://example.com/scim/v2/Groups/{urn}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "QryomAun-uVVIhNJrae92",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://example.com/scim/v2/Groups/{urn}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "cA-Mnvd-aAbHQQsAcqE82",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://example.com/scim/v2/Groups/{urn}\"\n\npayload={}\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ]
    },
    "results": {
      "languages": [
        {
          "id": "SjKwwmcAsYwKVTvthy4rS",
          "language": "200",
          "code": "// OK\n"
        }
      ],
      "selectedLanguageId": "SjKwwmcAsYwKVTvthy4rS"
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "description": "Retrieves a single SCIM Group using its URN as the uuid."
  },
  "children": [
    {
      "id": "V1wuEfhW-UX3qceSaXyUk",
      "type": "paragraph",
      "children": [
        {
          "text": "Retrieves a single SCIM Group using its URN as the uuid."
        }
      ]
    }
  ]
}