get:
  operationId: listEntitlementParents
  tags:
    - Entitlements
  summary: List of entitlements parents
  description: >-
    This API returns a list of all parent entitlements of a given entitlement.


    A token with ORG_ADMIN or API authority is required to call this API.
  parameters:
    - $ref: '../../v3/parameters/limit.yaml'
    - $ref: '../../v3/parameters/offset.yaml'
    - $ref: '../../v3/parameters/count.yaml'
    - in: path
      name: id
      schema:
        type: string
      required: true
      description: Entitlement Id
      example: 2c91808c74ff913f0175097daa9d59cd
  responses:
    '200':
      description: List of entitlements parents from an entitlement
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '../schemas/Entitlement.yaml'
          example:
            [
            {
              "sourceSchemaObjectType": "group",
              "attribute": "memberOf",
              "attributes": {
                "GroupType": "Security",
                "sAMAccountName": "LauncherTestGroup1",
                "GroupScope": "Global",
                "objectguid": "{01a6e70b-9705-4155-a5c6-492a9bcc8c64}",
                "objectSid": "S-1-5-21-3585869415-1648031554-2909195034-1633",
                "cn": "LauncherTestGroup1",
                "msDS-PrincipalName": "AUTOMATIONAD\\LauncherTestGroup1"
              },
              "value": "CN=LauncherTestGroup1,OU=LauncherTestOrg,OU=slpt-automation,DC=TestAutomationAD,DC=local",
              "description": "some description",
              "privileged": false,
              "cloudGoverned": false,
              "source": {
                "type": "SOURCE",
                "id": "2c9180877504c40e0175097d5ce707c8",
                "name": "EndToEnd-ADSource"
              },
              "id": "2c91808c74ff913f0175097daa9d59cd",
              "name": "LauncherTestGroup1",
              "created": "2020-10-08T18:33:52.029Z",
              "modified": "2021-01-19T16:53:35.707Z"
            }
            ]
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '404':
      $ref: '../../v3/responses/404.yaml'
    '429':
      $ref: '../../v3/responses/429.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
