# Campaign Filters OR Search filter - Need help

**URL:** <https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security\
**Created:** [August 29, 2023, 7:47pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867 "2023-08-29T19:47:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlessyMat\_AA](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@BlessyMat\_AA](https://developer.sailpoint.com/discuss/u/BlessyMat_AA)\
**Post date:** [August 29, 2023, 7:47pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867/1 "2023-08-29T19:47:50Z")

</div>

I have multiple sources in our IDN env. I want to create a campaign filter for a manager campaign on particular Source name = QT . This source QT contains 255 entitlements including a value “ALL”  
Need help is writing a campaign filter that contains all the 254 entitlements except for ALL

I wrote an inclusion filter where Entitlement for Source “QT Technologies Access” doesnot equal ALL.  
This is not working, it is pulling all the identities from all other sources. Please help

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

---

<div class="post-metadata">

**Author:** ![iamnithesh](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/iamnithesh/32/42445_2.png) [@iamnithesh](https://developer.sailpoint.com/discuss/u/iamnithesh)\
**Post date:** [August 30, 2023, 1:58am UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867/2 "2023-08-30T01:58:26Z")

</div>

You can use Certification Campaign from Search tab for this…

1. Write a query (`source.name:"QT Technologies Access" AND NOT name:ALL`) that will return all 254 entitlements and test the same in Search to ensure the query returns the entitlements you want
2. Now create a new campaign under Search tab (3rd icon on left side) with the following steps

- Specific Access Items that I select
- paste the query from Line 1 above and search
- Click on Entitlements and Select All
- Add to Campaign\
- Certify this Access  
… rest of the steps are quite simple and self explanatory in the UI

---

<div class="post-metadata">

**Author:** ![princess](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/princess/32/3845_2.png) [@princess](https://developer.sailpoint.com/discuss/u/princess)\
**Post date:** [August 30, 2023, 2:34am UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867/3 "2023-08-30T02:34:43Z")

</div>

could there be a reason why you prefer inclusion over exclusion?  
if it’s an exclusion filter  
Operation = ALL  
It will exclude the entitlement ALL from the source selected

---

<div class="post-metadata">

**Author:** ![BlessyMat\_AA](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@BlessyMat\_AA](https://developer.sailpoint.com/discuss/u/BlessyMat_AA)\
**Post date:** [August 30, 2023, 6:10pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867/4 "2023-08-30T18:10:36Z")

</div>

Thank you much Nithesh. That worked!

---

<div class="post-metadata">

**Author:** ![BlessyMat\_AA](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@BlessyMat\_AA](https://developer.sailpoint.com/discuss/u/BlessyMat_AA)\
**Post date:** [August 30, 2023, 6:21pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867/5 "2023-08-30T18:21:53Z")

</div>

When I provide the exclusion filter and run a manager campaign, it doesn’t allow to select from a single source. If I provide the source name in the campaign filter, and run manager campaign it still pulls in all other identities from every source present in our environment.

---

<div class="post-metadata">

**Author:** ![iamnithesh](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/iamnithesh/32/42445_2.png) [@iamnithesh](https://developer.sailpoint.com/discuss/u/iamnithesh)\
**Post date:** [August 30, 2023, 6:56pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867/6 "2023-08-30T18:56:57Z")

</div>

> [@BlessyMat\_AA](#):
>
> it still pulls in all other identities from every source present in our environment

That is because the filter configuration is such that it is “always” `OR` that is applied between multiple conditions you specify

---

<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:** [October 29, 2023, 6:57pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-or-search-filter-need-help/16867/7 "2023-10-29T18:57:22Z")

</div>

Closed on October 29, 2023, 6:57pm UTC

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