# Rest API query parameter search with special character

**URL:** <https://developer.sailpoint.com/discuss/t/rest-api-query-parameter-search-with-special-character/92728>\
**Category:** SHF Discussion and Questions\
**Tags:** nerm, identity-security-cloud\
**Created:** [December 9, 2024, 5:32am UTC](https://developer.sailpoint.com/discuss/t/rest-api-query-parameter-search-with-special-character/92728 "2024-12-09T05:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikasjain99999](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@vikasjain99999](https://developer.sailpoint.com/discuss/u/vikasjain99999)\
**Post date:** [December 9, 2024, 5:32am UTC](https://developer.sailpoint.com/discuss/t/rest-api-query-parameter-search-with-special-character/92728/1 "2024-12-09T05:32:15Z")

</div>

In a workflow I have to include the REST API component and search a user in the NERM through his profile attribute. In the user’s attribute has a special character like “+” sign, while “+” sign is considered as a space in the REST API query parameter.

So, please suggest how we can replace the “+” sign with “%2B” while passing to the REST API query parameter.

---

<div class="post-metadata">

**Author:** ![ZackTarantino-Woolson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zacktarantino-woolson/32/8372_2.png) [@ZackTarantino-Woolson](https://developer.sailpoint.com/discuss/u/ZackTarantino-Woolson)\
**Post date:** [December 9, 2024, 4:21pm UTC](https://developer.sailpoint.com/discuss/t/rest-api-query-parameter-search-with-special-character/92728/2 "2024-12-09T16:21:17Z")

</div>

NERM supports the Liquid templating language in REST API actions. (Liquid docs here: [Liquid template language](https://shopify.github.io/liquid/)

With that, you could use the “url\_encode” filter for the plus sign. For example, if you are making an Advanced Search API call like:

```auto
{
        "type": "ProfileAttributeRule",
        "condition_object_type": "TextFieldAttribute",
        "condition_object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "comparison_operator": "==",
        "value": "{{attribute.first_name}}"
}

```

You could change that value to be encoded:

```auto
"value": "{{attribute.first_name | url_encode }}"

```

---

<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:** [February 7, 2025, 4:21pm UTC](https://developer.sailpoint.com/discuss/t/rest-api-query-parameter-search-with-special-character/92728/3 "2025-02-07T16:21:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
