# AD Group Filter to filter specific groups while aggregation

**URL:** <https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq\
**Created:** [March 14, 2026, 10:42am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489 "2026-03-14T10:42:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jadhikary](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jadhikary](https://developer.sailpoint.com/discuss/u/Jadhikary)\
**Post date:** [March 14, 2026, 10:42am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/1 "2026-03-14T10:42:50Z")

</div>

## Which IIQ version are you inquiring about?

_8.5 v_

## Share all details about your problem, including any error messages you may have received.

_I have a use case in which I have to filter out two specific groups at the time of Aggregation. Is there any way through which I can do it without writing any kind of rule._

---

<div class="post-metadata">

**Author:** ![kumarSinghM](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kumarSinghM](https://developer.sailpoint.com/discuss/u/kumarSinghM)\
**Post date:** [March 14, 2026, 10:45am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/2 "2026-03-14T10:45:33Z")

</div>

Do you need this specifically for AD connector only ?

---

<div class="post-metadata">

**Author:** ![kumarSinghM](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kumarSinghM](https://developer.sailpoint.com/discuss/u/kumarSinghM)\
**Post date:** [March 14, 2026, 10:50am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/3 "2026-03-14T10:50:11Z")

</div>

If it is for AD type of connector, then you can use Group FilterQuery to achieve this usecase.

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/c/7/c79f2c47aaf2bc779e53c0ddfb79cb36e14e1770.png)

---

<div class="post-metadata">

**Author:** ![neel193](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/neel193/32/34038_2.png) [@neel193](https://developer.sailpoint.com/discuss/u/neel193)\
**Post date:** [March 14, 2026, 11:29am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/4 "2026-03-14T11:29:59Z")

</div>

@Jadhikary Please use below filter to exclude the groups:  
`(&(objectClass=group)(!(cn=ExcludedGroupName1))(!(cn=ExcludedGroupName2)))`

---

<div class="post-metadata">

**Author:** ![kumarSinghM](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kumarSinghM](https://developer.sailpoint.com/discuss/u/kumarSinghM)\
**Post date:** [March 14, 2026, 11:33am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/5 "2026-03-14T11:33:48Z")

</div>

@Jadhikary

Try this query. I have been using this in my environment and it works.

```auto
(&
    (objectClass=group)
    (!(distinguishedName=CN-Value-Group1))
    (!(distinguishedName=CN-Value-Group2))
)

```

---

<div class="post-metadata">

**Author:** ![Jadhikary](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jadhikary](https://developer.sailpoint.com/discuss/u/Jadhikary)\
**Post date:** [March 14, 2026, 11:34am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/6 "2026-03-14T11:34:57Z")

</div>

Thanks @neel193 I tried this but it did not removed the ones that I am trying to filter.

---

<div class="post-metadata">

**Author:** ![Jadhikary](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jadhikary](https://developer.sailpoint.com/discuss/u/Jadhikary)\
**Post date:** [March 14, 2026, 11:35am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/7 "2026-03-14T11:35:42Z")

</div>

Thank you ! Let me try this.

---

<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:** [May 13, 2026, 11:35am UTC](https://developer.sailpoint.com/discuss/t/ad-group-filter-to-filter-specific-groups-while-aggregation/199489/8 "2026-05-13T11:35:53Z")

</div>

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