# Source Filter Settings

**URL:** <https://developer.sailpoint.com/discuss/t/source-filter-settings/109912>\
**Category:** SHF Discussion and Questions\
**Tags:** aggregation, sailpoint-identity-security\
**Created:** [April 10, 2025, 8:48am UTC](https://developer.sailpoint.com/discuss/t/source-filter-settings/109912 "2025-04-10T08:48:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![earvs0527](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@earvs0527](https://developer.sailpoint.com/discuss/u/earvs0527)\
**Post date:** [April 10, 2025, 8:48am UTC](https://developer.sailpoint.com/discuss/t/source-filter-settings/109912/1 "2025-04-10T08:48:43Z")

</div>

Hi,

Good day! I’m trying to use and having a hard time on an account filter under the aggregation settings in our source to exclude user\_name that contains `_old*`, so that old accounts are not captured.

Could you please advise how I can configure the filter to exclude user\_name that contain `_old`, `_old1`, `_old2`, and similar patterns during account aggregation?

Thank you!

---

<div class="post-metadata">

**Author:** ![KRM7](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/krm7/32/2685_2.png) [@KRM7](https://developer.sailpoint.com/discuss/u/KRM7)\
**Post date:** [April 10, 2025, 9:03am UTC](https://developer.sailpoint.com/discuss/t/source-filter-settings/109912/2 "2025-04-10T09:03:58Z")

</div>

You can use

`user_name.contains("_old")`

For more info, check this [doc](https://community.sailpoint.com/t5/Identity-Security-Cloud-Wiki/IdentityNow-Account-Filtering-during-Account-Aggregation/ta-p/142873)

---

<div class="post-metadata">

**Author:** ![Abhishek\_1995](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Abhishek\_1995](https://developer.sailpoint.com/discuss/u/Abhishek_1995)\
**Post date:** [April 10, 2025, 11:09am UTC](https://developer.sailpoint.com/discuss/t/source-filter-settings/109912/3 "2025-04-10T11:09:11Z")

</div>

Hi @earvs0527,  
Can you Please PATCH the below filter in your source and please let me know.

```auto
[
    {
        "op": "add",
        "path": "/connectorAttributes/account.filterString",
        "value": "( user_name.contains( '_old' ))"
    }
]

```

I hope this will work for you.  
Thank you!

---

<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:** [June 9, 2025, 11:09am UTC](https://developer.sailpoint.com/discuss/t/source-filter-settings/109912/4 "2025-06-09T11:09:22Z")

</div>

Closed on June 9, 2025, 11:09am UTC

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