# How to Filter out Groups in Azure AD Connector?

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-filter-out-groups-in-azure-ad-connector/9848>\
**Category:** IIQ Discussion and Questions\
**Created:** [March 31, 2023, 1:59pm UTC](https://developer.sailpoint.com/discuss/t/how-to-filter-out-groups-in-azure-ad-connector/9848 "2023-03-31T13:59:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhadelbikram90](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@bhadelbikram90](https://developer.sailpoint.com/discuss/u/bhadelbikram90)\
**Post date:** [March 31, 2023, 1:59pm UTC](https://developer.sailpoint.com/discuss/t/how-to-filter-out-groups-in-azure-ad-connector/9848/1 "2023-03-31T13:59:56Z")

</div>

Can we just aggregate a single security group from Azure AD connector? My requirement is to bring single AD group and its members.

---

<div class="post-metadata">

**Author:** ![ismaelmoreno1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ismaelmoreno1/32/2756_2.png) [@ismaelmoreno1](https://developer.sailpoint.com/discuss/u/ismaelmoreno1)\
**Post date:** [June 15, 2023, 10:17pm UTC](https://developer.sailpoint.com/discuss/t/how-to-filter-out-groups-in-azure-ad-connector/9848/2 "2023-06-15T22:17:03Z")

</div>

Hi @bhadelbikram90

Coud you try following condition in filter group configuration?

```auto
securityEnabled eq true

```

it is possible also filter by Displayname, where param nameGroup is the displayName of the group

```auto
displayName eq nameGroup

```

You can see more details about filter aggretion in the following link: [Aggregation Settings (sailpoint.com)](https://documentation.sailpoint.com/connectors/microsoft/azure_ad/help/integrating_azure_active_directory/aggregation_settings.html)

Also, you can get more information about query capabilities on Azure AD in the following link: [Advanced query capabilities on Azure AD objects - Microsoft Graph | Microsoft Learn](https://learn.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http)

---

<div class="post-metadata">

**Author:** ![neeme\_vool](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/neeme_vool/32/2681_2.png) [@neeme\_vool](https://developer.sailpoint.com/discuss/u/neeme_vool)\
**Post date:** [June 16, 2023, 4:10am UTC](https://developer.sailpoint.com/discuss/t/how-to-filter-out-groups-in-azure-ad-connector/9848/3 "2023-06-16T04:10:59Z")

</div>

It is possible to do it also with Rule, if you have the need to load different single groups.  
Like:

```auto
import sailpoint.object.Application;
import sailpoint.object.ResourceObject;
import sailpoint.api.Aggregator;
import sailpoint.connector.Connector;

Application application = context.getObjectByName(Application.class, appName);
Connector appConnector = sailpoint.connector.ConnectorFactory.getConnector(application, null);
ResourceObject rObj = (ResourceObject) appConnector.getObject("group", groupName, null);
Attributes argMap = new Attributes();
argMap.put("accountGroupRefreshRule", preRefreshRule);
argMap.put("aggregationType", "group");
argMap.put("applications", application.getName());
Aggregator agg = new Aggregator(context, argMap);
agg.aggregateGroup(application, rObj);

```

---

<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 15, 2023, 4:11am UTC](https://developer.sailpoint.com/discuss/t/how-to-filter-out-groups-in-azure-ad-connector/9848/4 "2023-08-15T04:11:38Z")

</div>

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