# Campaign Filters not working

**URL:** <https://developer.sailpoint.com/discuss/t/campaign-filters-not-working/67537>\
**Category:** SHF Discussion and Questions\
**Tags:** certifications, sailpoint-identity-security\
**Created:** [June 19, 2024, 8:23am UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-not-working/67537 "2024-06-19T08:23:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandramohans27](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chandramohans27](https://developer.sailpoint.com/discuss/u/chandramohans27)\
**Post date:** [June 19, 2024, 8:23am UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-not-working/67537/1 "2024-06-19T08:23:20Z")

</div>

Hi Experts,

I have created a campaign filter to exclude inactive accounts from source : Azure FedRAMP Entra ID QA. Also I’m using below payload to generate a campaign. but the campaign generated still holds the inactive accounts. I see that campaign filter doesn’t work in this case.

```auto
{
  "name": "Search Campaign",
  "description": "Search Campaign",
  "deadline": "2024-06-26T06:00:00.468Z",
  "type": "SEARCH",
  "emailNotificationEnabled": false,
  "autoRevokeAllowed": false,
  "recommendationsEnabled": false,
  "filter": {
    "type": "CAMPAIGN_FILTER",
    "id": "95698357b6bbce4e82ef022370290a0a"
  },
  "searchCampaignInfo": {
    "type": "ACCESS",
    "query": "(source.name:\"Azure FedRAMP Entra ID QA\" AND attribute:groups)"
  },
  "mandatoryCommentRequirement": "NO_DECISIONS"
}

```

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [June 19, 2024, 3:47pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-not-working/67537/2 "2024-06-19T15:47:55Z")

</div>

> [@chandramohans27](#):
>
> a campaign filter to exclude inactive accounts from source : Azure FedRAMP Entra ID QA. Also I’m using below payload to generate a campaign. but the ca

Hi @chandramohans27,

Did you use search campign or filter campaign ?

In your filter :

```auto
(source.name:\"Azure FedRAMP Entra ID QA\" AND attribute:groups)

```

I not see inactive accounts exclutions

---

<div class="post-metadata">

**Author:** ![chandramohans27](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chandramohans27](https://developer.sailpoint.com/discuss/u/chandramohans27)\
**Post date:** [June 19, 2024, 4:11pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-not-working/67537/3 "2024-06-19T16:11:03Z")

</div>

I’m using search campaign, I have created a campaign filter for inactive accounts exclusion and added the ID in the campaign creation payload

---

<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:** [August 18, 2024, 4:11pm UTC](https://developer.sailpoint.com/discuss/t/campaign-filters-not-working/67537/4 "2024-08-18T16:11:33Z")

</div>

Closed on August 18, 2024, 4:11pm UTC

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