# Fetch Entitlement name from the Access Profile in the Workflow with Access Request Decision Trigger

**URL:** <https://developer.sailpoint.com/discuss/t/fetch-entitlement-name-from-the-access-profile-in-the-workflow-with-access-request-decision-trigger/7116>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, access-profiles, entitlements\
**Created:** [December 9, 2022, 4:25pm UTC](https://developer.sailpoint.com/discuss/t/fetch-entitlement-name-from-the-access-profile-in-the-workflow-with-access-request-decision-trigger/7116 "2022-12-09T16:25:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAI\_LANKALA](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@JAI\_LANKALA](https://developer.sailpoint.com/discuss/u/JAI_LANKALA)\
**Post date:** [December 9, 2022, 4:25pm UTC](https://developer.sailpoint.com/discuss/t/fetch-entitlement-name-from-the-access-profile-in-the-workflow-with-access-request-decision-trigger/7116/1 "2022-12-09T16:25:05Z")

</div>

Hello,

We need to fetch entitlement name from the Access Profile requested. I’m using **Access Request Decision Trigger** and trying to use Search query in **GET ACCESS** Step. I’ve passed search query as **name:$.trigger.requestedItemsStatus[0].name** and it returns only access profile’s name, id and type. However, I need the entire json object of that access profile requested so that I can retrieve the entitlement name from it.

Let me know if further details needed.

Regards,  
Jai.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [December 14, 2022, 9:11pm UTC](https://developer.sailpoint.com/discuss/t/fetch-entitlement-name-from-the-access-profile-in-the-workflow-with-access-request-decision-trigger/7116/2 "2022-12-14T21:11:14Z")

</div>

The “Get Access” action returns an output that is suitable for use in “Manage Access”, hence the reason you are not seeing the full access profile object representation. To get the full representation, you will need to use an HTTP Request action against the appropriate API endpoint. In your case, you can configure the HTTP Request action as follows:

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/e/e50a24e3693683feae67b80b5c28b8373e893140.png)  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/6/62f952e684f7cf247410e2bd9b964ef466940bf8.png)

You will need to configure your authentication details according to your personal access token, and the request URL should be `https://{tenant}.api.identitynow.com/beta/access-profiles/{{$.trigger.requestedItemsStatus[0].id}}`

The output of this request will follow the schema of the [get access profile API](https://developer.sailpoint.com/idn/api/beta/get-access-profile). For example:

```json
{
  "id": "2c91808a7190d06e01719938fcd20792",
  "name": "Employee-database-read-write",
  "description": "Collection of entitlements to read/write the employee database",
  "created": "2021-03-01T22:32:58.104Z",
  "modified": "2021-03-02T20:22:28.104Z",
  "enabled": true,
  "owner": {
    "type": "IDENTITY",
    "id": "2c9180a46faadee4016fb4e018c20639",
    "name": "support"
  },
  "source": {
    "id": "2c91809773dee3610173fdb0b6061ef4",
    "type": "SOURCE",
    "name": "ODS-AD-SOURCE"
  },
  "entitlements": [
    {
      "id": "2c91809773dee32014e13e122092014e",
      "type": "ENTITLEMENT",
      "name": "CN=entitlement.490efde5,OU=OrgCo,OU=ServiceDept,DC=HQAD,DC=local"
    }
  ],
  "requestable": true,
  "accessRequestConfig": {
    "commentsRequired": true,
    "denialCommentsRequired": true,
    "approvalSchemes": [
      {
        "approverType": "GOVERNANCE_GROUP",
        "approverId": "46c79819-a69f-49a2-becb-12c971ae66c6"
      }
    ]
  },
  "revocationRequestConfig": {
    "approvalSchemes": [
      {
        "approverType": "GOVERNANCE_GROUP",
        "approverId": "46c79819-a69f-49a2-becb-12c971ae66c6"
      }
    ]
  },
  "segments": [
    "f7b1b8a3-5fed-4fd4-ad29-82014e137e19",
    "29cb6c06-1da8-43ea-8be4-b3125f248f2a"
  ],
  "provisioningCriteria": {
    "operation": "OR",
    "children": [
      {
        "operation": "AND",
        "children": [
          {
            "attribute": "dn",
            "operation": "CONTAINS",
            "value": "useast"
          },
          {
            "attribute": "manager",
            "operation": "CONTAINS",
            "value": "Scott.Clark"
          }
        ]
      },
      {
        "operation": "AND",
        "children": [
          {
            "attribute": "dn",
            "operation": "EQUALS",
            "value": "Gibson"
          },
          {
            "attribute": "telephoneNumber",
            "operation": "CONTAINS",
            "value": "512"
          }
        ]
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![JAI\_LANKALA](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@JAI\_LANKALA](https://developer.sailpoint.com/discuss/u/JAI_LANKALA)\
**Post date:** [December 19, 2022, 10:30am UTC](https://developer.sailpoint.com/discuss/t/fetch-entitlement-name-from-the-access-profile-in-the-workflow-with-access-request-decision-trigger/7116/3 "2022-12-19T10:30:14Z")

</div>

Thanks for the Idea. It is working as expected 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:23pm UTC](https://developer.sailpoint.com/discuss/t/fetch-entitlement-name-from-the-access-profile-in-the-workflow-with-access-request-decision-trigger/7116/4 "2023-07-19T14:23:58Z")

</div>


